Skip to content

Commit 3fc53f8

Browse files
committed
more defmt::Format
1 parent 808c1be commit 3fc53f8

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

embedded-command/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name = "embedded-command"
33
version = "0.1.0"
44
edition = "2021"
55

6-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
76

87
[dependencies]
98
embassy-futures = "0.1.1"
@@ -12,3 +11,7 @@ embedded-hal-async = "1.0.0"
1211
embedded-io-async = "0.6.1"
1312
heapless = "0.8.0"
1413
cookie-cutter = { path = "../cookie-cutter" }
14+
defmt = { version = "0.3.10", optional = true }
15+
16+
[features]
17+
defmt = ["dep:defmt"]

embedded-command/src/command_buffer.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ use core::mem::MaybeUninit;
22

33
pub mod error {
44
#[derive(Debug)]
5+
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
56
pub struct Overflow;
67
}
78

0 commit comments

Comments
 (0)