diff --git a/mqtt-format/Cargo.toml b/mqtt-format/Cargo.toml index cc31638d..d174d723 100644 --- a/mqtt-format/Cargo.toml +++ b/mqtt-format/Cargo.toml @@ -12,16 +12,19 @@ categories = ["embedded", "parsing"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [features] +default = ["mqttv5"] yoke = ["dep:yoke"] debug = ["winnow/debug"] +mqttv3 = ["dep:futures", "dep:nom", "dep:nom-supreme"] +mqttv5 = ["dep:winnow"] [dependencies] -futures = "0.3.28" -nom = "7.1.3" -nom-supreme = "0.8.0" +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" thiserror = "1.0.40" -winnow = "0.6.5" +winnow = { version = "0.6.5", optional = true } yoke = { version = "0.7.0", features = ["derive"], optional = true } [dev-dependencies]