Skip to content

Commit

Permalink
Optionally include paste
Browse files Browse the repository at this point in the history
The paste crate is included now only if `use-crc` feature is enabled. This may help improve build performance where CRCs are not required.
  • Loading branch information
huntc committed Apr 8, 2023
1 parent 97db5f8 commit 2c9ed55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ optional = true

[dependencies.paste]
version = "1.0.12"
optional = true

[features]
default = ["heapless-cas"]
Expand All @@ -66,7 +67,7 @@ use-std = ["serde/std", "alloc"]
heapless-cas = ["heapless", "heapless/cas"]
alloc = ["serde/alloc"]
use-defmt = ["defmt"]
use-crc = ["crc"]
use-crc = ["crc", "paste"]

# Experimental features!
#
Expand Down

0 comments on commit 2c9ed55

Please sign in to comment.