Cargo Features
[dependencies]
itm_logger = { version = "0.1.2", default-features = false, features = ["logging", "perform-enabled-checks"] }
- default = logging
-
Set up this way so it's possible to disable logging and have the log macros expand to noop
- logging default = cortex-m, log
- perform-enabled-checks
-
Attempt to check if debug && itm && the stim port are all enabled before logging
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- cortex-m logging
-
Enables cortex-m ^0.6.2
- log logging