diff --git a/Cargo.lock b/Cargo.lock index 7869497..578fb5f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -507,7 +507,7 @@ checksum = "f665ee40bc4a3c5590afb1e9677db74a508659dfd71e126420da8274909a0167" [[package]] name = "msgpck" -version = "0.1.0-rc.1" +version = "0.1.0" dependencies = [ "defmt", "embedded-io-async", diff --git a/msgpck/Cargo.toml b/msgpck/Cargo.toml index dcce56f..89e60f8 100644 --- a/msgpck/Cargo.toml +++ b/msgpck/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "msgpck" -version = "0.1.0-rc.1" +version = "0.1.0" edition = "2021" authors = [ "Joakim Hulthe ", @@ -11,14 +11,14 @@ license = "MIT" [dependencies] num-traits = { version = "0.2.17", default-features = false } -# msgpck_derive = { version = "0.1.0", path = "../msgpck_derive", optional = true } +msgpck_derive = { version = "0.1.0", path = "../msgpck_derive", optional = true } heapless07 = { package = "heapless", version = "0.7.16", optional = true } thiserror = { version = "1.0.50", optional = true } embedded-io-async = { version = "0.6.0", optional = true } defmt = { version = "0.3.5", optional = true } [features] -default = ["std", "async"] +default = ["derive"] # Enables support for types from the `heapless` crate, like Vec, String, LinearMap heapless07 = ["dep:heapless07"] # Enables support for types in the `alloc` crate, like String, HashMap, BTreeMap @@ -36,7 +36,7 @@ std = [ "embedded-io-async?/std", ] # Enables derive macros -# derive = ["dep:msgpck_derive"] +derive = ["dep:msgpck_derive"] # Adds `inline(never)` annotations in some places reduce-size = [] # Adds async packing for writers that support it diff --git a/msgpck/src/lib.rs b/msgpck/src/lib.rs index 6ab24c3..e121929 100644 --- a/msgpck/src/lib.rs +++ b/msgpck/src/lib.rs @@ -127,8 +127,8 @@ pub use crate::{ utils::{pack_array_header, slice_take, unpack_array_header, unpack_enum_header}, }; -// #[cfg(feature = "derive")] -// pub use msgpck_derive::{MsgPck, UnMsgPck}; +#[cfg(feature = "derive")] +pub use msgpck_derive::{MsgPck, UnMsgPck}; #[cfg(feature = "async")] pub use crate::pack::pack_async::AsyncMsgPck;