Cargo Features

CriticalSection has no features set by default.

[dependencies]
critical-section = { version = "1.1.2", features = ["std", "restore-state-none", "restore-state-bool", "restore-state-u16", "restore-state-u64"] }
std = restore-state-bool

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.

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