diff --git a/Cargo.toml b/Cargo.toml index cf16cd4..1a9245b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rust-mqtt" -version = "0.1.5" +version = "0.2.0" authors = ["Ondrej Babec "] edition = "2021" resolver = "2" @@ -11,18 +11,18 @@ repository = "https://github.com/obabec/rust-mqtt" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -heapless = "0.7.10" -rand_core = "0.6.0" +heapless = "0.8" +rand_core = "0.6" defmt = { version = "0.3", optional = true } -log = { version = "0.4.14", optional = true } -embedded-io = "0.6.1" -embedded-io-async = { version = "0.6.0" } +log = { version = "0.4", optional = true } +embedded-io = "0.6" +embedded-io-async = "0.6" [dev-dependencies] tokio = { version = "1", features = ["full"] } -embedded-io = "0.6.1" -embedded-io-adapters ={ version = "0.6.0", features = ["tokio-1"]} -embedded-io-async = { version = "0.6.0" } +embedded-io = "0.6" +embedded-io-adapters ={ version = "0.6", features = ["tokio-1"]} +embedded-io-async = { version = "0.6" } tokio-test = { version = "0.4.2"} env_logger = "0.9.0" futures = { version = "0.3.21" } diff --git a/rust-toolchain.toml b/rust-toolchain.toml index fa10937..c767ffa 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,4 @@ [toolchain] -channel = "nightly-2022-11-22" +channel = "nightly-2023-11-01" components = [ "rust-src", "rustfmt" ] targets = [ "thumbv7em-none-eabi", "thumbv7m-none-eabi", "thumbv6m-none-eabi", "thumbv7em-none-eabihf", "thumbv8m.main-none-eabihf", "wasm32-unknown-unknown" ] diff --git a/src/packet/v5/connect_packet.rs b/src/packet/v5/connect_packet.rs index 1748b2c..8d18b3f 100644 --- a/src/packet/v5/connect_packet.rs +++ b/src/packet/v5/connect_packet.rs @@ -67,7 +67,7 @@ impl<'a, const MAX_PROPERTIES: usize, const MAX_WILL_PROPERTIES: usize> property_len: 3, properties: Vec::, MAX_PROPERTIES>::new(), client_id: EncodedString::new(), - /// Will is not supported as it is un-necessary load for embedded + // Will is not supported as it is un-necessary load for embedded will_property_len: 0, will_properties: Vec::, MAX_WILL_PROPERTIES>::new(), will_topic: EncodedString::new(), diff --git a/src/utils/buffer_writer.rs b/src/utils/buffer_writer.rs index 18526f1..5d16fc7 100644 --- a/src/utils/buffer_writer.rs +++ b/src/utils/buffer_writer.rs @@ -183,7 +183,7 @@ impl<'a> BuffWriter<'a> { pub fn write_topic_filters_ref( &mut self, sub: bool, - len: usize, + _len: usize, filters: &Vec, MAX>, ) -> Result<(), BufferError> { for filter in filters {