defmt in PAC is optional

This commit is contained in:
Robin Müller 2025-02-14 16:25:09 +01:00
parent 2bca96b5db
commit 181c2bdc7b

View File

@ -13,7 +13,7 @@ categories = ["embedded", "no-std", "hardware-support"]
[dependencies]
cortex-m = "0.7"
vcell = "0.1.3"
defmt = "0.3"
defmt = { version = "0.3", optional = true }
critical-section = { version = "1", optional = true }
[dependencies.cortex-m-rt]
@ -22,8 +22,6 @@ version = ">=0.6.15,<0.8"
[features]
rt = ["cortex-m-rt/device"]
# Adds defmt support
defmt = []
# Adds Debug implementation
debug = []