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-common is added without default-features = false somewhere in the dependency tree.

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 on std::sync::Mutex. If you enable this, the critical-section crate 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

Enables socketcan and tokio

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