Cargo Features
CriticalSection has no features set by default.
[dependencies]
critical-section = { version = "1.2.0", features = ["std", "restore-state-none", "restore-state-bool", "restore-state-u16", "restore-state-u64", "restore-state-usize"] }
- std = restore-state-bool
-
Enable a critical-section implementation for platforms supporting
std
, based onstd::sync::Mutex
. If you enable this, thecritical-section
crate itself provides the implementation, you don't have to get another crate to to do it. - restore-state-none
-
Set the RestoreState size.
The crate supplying the critical section implementation can set ONE of them.
Other crates MUST NOT set any of these.
Default - restore-state-bool std?
- restore-state-u8 restore-state-u16
- restore-state-u32 restore-state-u64
- restore-state-usize