From 2c1a05a0cd8540f12beedca7273917f7f4251ea1 Mon Sep 17 00:00:00 2001 From: Badr Bouslikhin Date: Mon, 15 Jan 2024 10:59:14 +0100 Subject: [PATCH] chore: update dependencies, switch to stable Rust, and update readme - Update Cargo.toml dependencies: `embedded-io-adapters`, `env_logger`, `serial_test`. - Switch to stable Rust 1.75. - Add MSRV section in README.md, documenting compatibility with stable Rust 1.75+. --- Cargo.toml | 10 +++++----- README.md | 6 +++++- rust-toolchain.toml | 13 ++++++++++--- src/lib.rs | 1 - 4 files changed, 20 insertions(+), 10 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1a9245b..03562e7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,13 +21,13 @@ embedded-io-async = "0.6" [dev-dependencies] tokio = { version = "1", features = ["full"] } embedded-io = "0.6" -embedded-io-adapters ={ version = "0.6", features = ["tokio-1"]} +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" +tokio-test = { version = "0.4.2" } +env_logger = "0.10.1" futures = { version = "0.3.21" } -log = { version = "0.4.14"} -serial_test = "0.6.0" +log = { version = "0.4.14" } +serial_test = "3.0.0" [features] default = ["std"] diff --git a/README.md b/README.md index dc39121..b8cf377 100644 --- a/README.md +++ b/README.md @@ -30,9 +30,13 @@ cargo test integration cargo test load ``` +## Minimum supported Rust version (MSRV) +Rust-mqtt is guaranteed to compile on stable Rust 1.75 and up. +It might compile with older versions but that may change in any new patch release. + ## Acknowledgment This project could not be in state in which currently is without Ulf Lilleengen and rest of the community from [Drogue IoT](https://github.com/drogue-iot). ## Contact -For any information contact me on email \ No newline at end of file +For any information contact me on email diff --git a/rust-toolchain.toml b/rust-toolchain.toml index c767ffa..5b8df73 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,11 @@ [toolchain] -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" ] +channel = "1.75" +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/lib.rs b/src/lib.rs index 96cf02d..10fa93f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -25,7 +25,6 @@ #![macro_use] #![cfg_attr(not(feature = "std"), no_std)] #![allow(dead_code)] -#![feature(type_alias_impl_trait)] pub(crate) mod fmt; pub mod client;