Skip to content

Commit

Permalink
Feature gate dependencies behind resp. features
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Müller <[email protected]>
  • Loading branch information
TheNeikos committed Mar 20, 2024
1 parent 2bdce56 commit 5e91f5f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions mqtt-format/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 5e91f5f

Please sign in to comment.