| 1 | [package] |
| 2 | name = "critical-section" |
| 3 | version = "1.2.0" |
| 4 | edition = "2018" |
| 5 | description = "Cross-platform critical section" |
| 6 | repository = "https://github.com/rust-embedded/critical-section" |
| 7 | readme = "README.md" |
| 8 | license = "MIT OR Apache-2.0" |
| 9 | categories = [ |
| 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. |
| 20 | std = ["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. |
| 25 | restore-state-none = [] # Default |
| 26 | restore-state-bool = [] |
| 27 | restore-state-u8 = [] |
| 28 | restore-state-u16 = [] |
| 29 | restore-state-u32 = [] |
| 30 | restore-state-u64 = [] |
| 31 | restore-state-usize = [] |
| 32 | |