Skip to content

Commit

Permalink
Make bytes optional dep
Browse files Browse the repository at this point in the history
  • Loading branch information
mchodzikiewicz committed Dec 23, 2024
1 parent 6e06377 commit 0e8338b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ default = ["std"]

# Implements serde::{Serialize,Deserialize} on mqttrs::Pid.
derive = ["serde", "heapless/serde"]
std = ["bytes/std", "serde/std"]
std = ["dep:bytes", "bytes/std", "serde/std"]
defmt = ["dep:defmt", "heapless/defmt-03"]

[dependencies]
bytes = { version = "1.0", default-features = false}
bytes = { version = "1.0", default-features = false, optional = true}
serde = { version = "1.0", features = ["derive"], optional = true }
heapless = { version = "0.8" }
defmt = { version = "0.3.10", optional = true }
Expand Down

0 comments on commit 0e8338b

Please sign in to comment.