1[package]
2name = "critical-section"
3version = "1.1.2"
4edition = "2018"
5description = "Cross-platform critical section"
6repository = "https://github.com/rust-embedded/critical-section"
7readme = "README.md"
8license = "MIT OR Apache-2.0"
9categories = [
10 "embedded",
11 "no-std",
12 "concurrency",
13]
14
15[features]
16
17# Enable a critical-section implementation for platforms supporting `std`, based on `std::sync::Mutex`.
18# If you enable this, the `critical-section` crate itself provides the implementation,
19# you don't have to get another crate to to do it.
20std = ["restore-state-bool"]
21
22# Set the RestoreState size.
23# The crate supplying the critical section implementation can set ONE of them.
24# Other crates MUST NOT set any of these.
25restore-state-none = [] # Default
26restore-state-bool = []
27restore-state-u8 = []
28restore-state-u16 = []
29restore-state-u32 = []
30restore-state-u64 = []
31