Crate features / critical-section
Feature flags · critical-section 1.2.0 · from crates.io 2026-10-24
critical-section features: what each one does, and the line to copy
Short answercritical-section 1.2.0 has 8 features. Nothing is on by default: turn on what you use.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
restore-state-bool | nothing else (a switch the code checks) | |
restore-state-none | nothing else (a switch the code checks) | |
restore-state-u16 | nothing else (a switch the code checks) | |
restore-state-u32 | nothing else (a switch the code checks) | |
restore-state-u64 | nothing else (a switch the code checks) | |
restore-state-u8 | nothing else (a switch the code checks) | |
restore-state-usize | nothing else (a switch the code checks) | |
std | restore-state-bool |
dep:x turns on the optional dependency x; x/y turns on feature y of dependency x (with ?, only if x is already on).
More on critical-section
Real downloads, dependents and alternatives: critical-section crate data (463K real downloads a day, 793 dependents).
docs.rs feature list · crates.io · license MIT OR Apache-2.0 · edition 2018
Up next
Before you depend on itcritical-section crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?