Cargo Features
[dependencies]
mutex = { version = "1.0.2", default-features = false, features = ["impl-critical-section", "impl-unsafe-cortex-m-single-core", "impl-lock_api-0_4", "fmt", "std"] }
- default = impl-critical-section
-
The
impl-critical-sectionfeature is set by default whenevermutexis added withoutsomewhere in the dependency tree.default-features = false - impl-critical-section default
-
Enables critical-section
Affects
raw_impls::cs… - impl-unsafe-cortex-m-single-core
-
Affects
raw_impls::single_core_thread_mode… - impl-lock_api-0_4
-
Enables lock_api
Affects
raw_impls::lock_api_0_4… - fmt
-
Enables
fmt::Debugandfmt::Displayimplementations.These can be disabled when minimizing binary size is important.
- std
-
Enables unlock-on-unwind for BlockingMutex, also enables the std feature of the
critical-sectioncrateEnables std of optional critical-section