From 953d64eeeeb4355e18a5bd52bfdfaeedfede792e Mon Sep 17 00:00:00 2001 From: raven <7156279+RavenX8@users.noreply.github.com> Date: Fri, 13 Dec 2024 14:28:52 -0500 Subject: [PATCH] - update: NullTerminatedString to utils crate - update: README.md --- README.md | 6 +----- generator/src/codegen/rust/codegen_source.rs | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 0e748e5..101bb9c 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,5 @@ packet generator for osiROSE-new ##### Build status -[![lin-badge]][lin-link] [![win-badge]][win-link] -[lin-badge]: https://travis-ci.com/dev-osrose/IDL.svg?branch=master "Linux build status" -[lin-link]: https://travis-ci.com/dev-osrose/IDL "Linux build status" -[win-badge]: https://ci.appveyor.com/api/projects/status/vok7xs5wr1ajqpbc?svg=true "Windows build status" -[win-link]: https://ci.appveyor.com/project/RavenX8/idl "Windows build status" +Check the actions tab for build status. \ No newline at end of file diff --git a/generator/src/codegen/rust/codegen_source.rs b/generator/src/codegen/rust/codegen_source.rs index b8dd66d..dfc70da 100644 --- a/generator/src/codegen/rust/codegen_source.rs +++ b/generator/src/codegen/rust/codegen_source.rs @@ -36,11 +36,11 @@ impl<'a, W: Write> CodeSourceGenerator<'a, W> { cg!(self, r#"use bincode::{{Encode, Decode, enc::Encoder, de::Decoder, error::DecodeError}};"#); cg!(self, r#"use bincode::de::read::Reader;"#); cg!(self, r#"use bincode::enc::write::Writer;"#); + cg!(self, r#"use utils::null_string::NullTerminatedString;"#); cg!(self, r#"use crate::enums::*;"#); cg!(self, r#"use crate::types::*;"#); cg!(self, r#"use crate::dataconsts::*;"#); cg!(self, r#"use crate::packet::PacketPayload;"#); - cg!(self, r#"use crate::handlers::null_string::NullTerminatedString;"#); let mut iserialize: HashMap = HashMap::new(); iserialize.insert("int8_t".to_string(), "i8".to_string());