Cargo Features
[dependencies]
simple-shutdown = { version = "0.1.0", default-features = false, features = ["std", "alloc", "tokio"] }
- default = std
-
The
std
feature is set by default wheneversimple-shutdown
is added without
somewhere in the dependency tree.default-features = false - std default tokio? = alloc
-
Enables std of critical-section
critical-section:
Enable a critical-section implementation for platforms supporting
std
, based onstd::sync::Mutex
. If you enable this, thecritical-section
crate itself provides the implementation, you don't have to get another crate to to do it. - alloc std
- tokio = std
-
Enables tokio
simple-shutdown has 4 features without comments.