Crate features / snafu
Feature flags · snafu 0.9.2 · from crates.io 2026-10-24
snafu features: what each one does, and the line to copy
Short answersnafu 0.9.2 has 13 features. By default it turns on std, rust_1_81; add default-features = false to start from nothing. It needs Rust 1.65 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
alloc | nothing else (a switch the code checks) | |
backtrace | nothing else (a switch the code checks) | |
backtraces-impl-backtrace-crate | dep:backtrace | |
futures | dep:futures-core, dep:pin-project | |
futures-core-crate | nothing else (a switch the code checks) | |
futures-crate | nothing else (a switch the code checks) | |
guide | nothing else (a switch the code checks) | |
internal-dev-dependencies | dep:futures | |
pin-project | nothing else (a switch the code checks) | |
rust_1_81 | yes | nothing else (a switch the code checks) |
std | yes | alloc |
unstable-provider-api | snafu-derive/unstable-provider-api | |
unstable-try-trait | nothing else (a switch the code checks) |
dep:x turns on the optional dependency x; x/y turns on feature y of dependency x (with ?, only if x is already on).
MSRV history
The minimum Rust version snafu declares (rust-version), and the release that changed it:
- 0.8.0 (2023-12-30): Rust 1.56
- 0.9.0 (2026-03-02): Rust 1.65
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p snafu --precise <version>, or use resolver 3, which picks compatible versions for you.
More on snafu
Real downloads, dependents and alternatives: snafu crate data (263.5K real downloads a day, 998 dependents).
docs.rs feature list · crates.io · license MIT OR Apache-2.0 · edition 2018
Up next
Before you depend on itsnafu crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?