From d7d0dc434908de3e4082aed090195ce523576be3 Mon Sep 17 00:00:00 2001 From: Jurek Date: Mon, 13 May 2024 16:57:08 +0200 Subject: [PATCH] adding `no_std` feature --- mqtt-format/Cargo.toml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mqtt-format/Cargo.toml b/mqtt-format/Cargo.toml index 4bdb5cd8..1c5eecdd 100644 --- a/mqtt-format/Cargo.toml +++ b/mqtt-format/Cargo.toml @@ -12,20 +12,20 @@ categories = ["embedded", "parsing"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [features] -default = ["mqttv5"] +default = ["mqttv5", "num_enum/std"] yoke = ["dep:yoke"] -mqttv3 = ["dep:futures", "dep:nom", "dep:nom-supreme"] +mqttv3 = ["dep:futures", "dep:nom", "dep:nom-supreme", "dep:thiserror"] mqttv5 = ["dep:winnow"] [dependencies] futures = { version = "0.3.28", optional = true } nom = { version = "7.1.3", optional = true } nom-supreme = { version = "0.8.0", optional = true } -num_enum = "0.7.2" +num_enum = { version = "0.7.2", default-features = false } paste = "1.0.14" -thiserror = "1.0.40" -winnow = { version = "0.6.5", optional = true } -yoke = { version = "0.7.0", features = ["derive"], optional = true } +winnow = { version = "0.6.5", optional = true, default-features = false } +thiserror = { version = "1.0.40", optional = true } +yoke = { version = "0.7.0", features = ["derive"], optional = true, default-features = false } [dev-dependencies] pretty_assertions = "1.3.0"