Cargo Features
[dependencies]
zencan-common = { version = "0.0.3", default-features = false, features = ["std", "socketcan", "defmt", "log"] }
- default = log, socketcan, std
-
These default features are set whenever
zencan-commonis added withoutsomewhere in the dependency tree.default-features = false - std default socketcan
-
Enables toml ^0.8.20, regex and serde, std of snafu ^0.8.5 and std of chrono and critical-section
critical-section:
Enable a critical-section implementation for platforms supporting
std, based onstd::sync::Mutex. If you enable this, thecritical-sectioncrate itself provides the implementation, you don't have to get another crate to to do it.Affects
zencan-common::device_config,zencan-common::node_configuration,traits::CanSendError.message… - socketcan default = std
- defmt
-
Enables defmt, defmt of defmt-or-log
- log default
-
Enables log of defmt-or-log
defmt-or-log:
Choose at most one of the following two features