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 whenever simple-shutdown is added without default-features = false somewhere in the dependency tree.

std default tokio? = alloc

Enables std of critical-section

critical-section:

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.

alloc std
tokio = std

Enables tokio

simple-shutdown has 4 features without comments.