Skip to content

Commit b1d84ed

Browse files
committed
Make Cargo feature explicit
To keep consistent with all other crates, and for clarity, it is best to explicitly declare `defmt-03` as a feature of the `embedded-hal` crate. This way people can look at the `[features]` section rather than search through any optional dependencies. In this case it's not that big of a deal, but it keeps the pattern.
1 parent 6df95fd commit b1d84ed

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

embedded-hal/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@ readme = "README.md"
1515
repository = "https://github.com/rust-embedded/embedded-hal"
1616
version = "1.0.0-rc.1"
1717

18+
[features]
19+
defmt-03 = ["dep:defmt-03"]
20+
1821
[dependencies]
1922
defmt-03 = { package = "defmt", version = "0.3", optional = true }

0 commit comments

Comments
 (0)