Cargo Features

[dependencies]
mutex = { version = "1.0.0", 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-section feature is set by default whenever mutex is added without default-features = false somewhere in the dependency tree.

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::Debug and fmt::Display implementations.

These can be disabled when minimizing binary size is important.

std