-
Notifications
You must be signed in to change notification settings - Fork 18
/
Cargo.toml
31 lines (28 loc) · 911 Bytes
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
[package]
name = "critical-section"
version = "1.2.0"
edition = "2018"
description = "Cross-platform critical section"
repository = "https://github.com/rust-embedded/critical-section"
readme = "README.md"
license = "MIT OR Apache-2.0"
categories = [
"embedded",
"no-std",
"concurrency",
]
[features]
# 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.
std = ["restore-state-bool"]
# Set the RestoreState size.
# The crate supplying the critical section implementation can set ONE of them.
# Other crates MUST NOT set any of these.
restore-state-none = [] # Default
restore-state-bool = []
restore-state-u8 = []
restore-state-u16 = []
restore-state-u32 = []
restore-state-u64 = []
restore-state-usize = []