Added defmt logging

This commit is contained in:
2026-01-16 22:33:53 +01:00
parent d30a261e74
commit 6ca19f88fa
4 changed files with 91 additions and 4 deletions

View File

@@ -11,8 +11,10 @@ categories = ["encoding", "decoding"]
[features]
default = ["std"]
std = ["serde/std", "serde_json/std", "thiserror/std", "num_enum/std"]
std = ["serde/std", "serde_json/std", "thiserror/std", "num_enum/std", "log"]
json = ["serde_json"]
defmt = ["dep:defmt"]
log = ["dep:log"]
[dependencies]
serde = { version = "1.0", default-features = false}
@@ -21,7 +23,8 @@ thiserror = {version="2.0.17", default-features = false}
# chrono = { version = "0.4", features = ["serde"] }
enum_stringify = "0.6.4"
num_enum = {version="0.7.5", default-features = false}
log = { version = "0.4" }
log = { version = "0.4", optional = true }
defmt = { version = "0.3", optional = true }
[lints.clippy]