Cargo Features
[dependencies]
snafu = { version = "0.9.0", default-features = false, features = ["std", "alloc", "rust_1_81", "backtraces-impl-backtrace-crate", "unstable-provider-api", "unstable-try-trait", "futures", "guide", "internal-dev-dependencies"] }
- default = rust_1_81, std
-
These default features are set whenever
snafuis added withoutsomewhere in the dependency tree.default-features = false - std default = alloc
-
Implement the
std::error::Errortrait. - alloc std
-
Support
Box<dyn Error>andString(forWhatever,CleanedErrorText)Affects
report::CleanedErrorText… - rust_1_81 default
-
core::errorwas stabilized - backtraces-impl-backtrace-crate = backtrace
-
The backtrace type becomes
backtrace::Backtrace - unstable-provider-api
-
The std::error::Error provider API will be implemented.
Enables unstable-provider-api of snafu-derive
- unstable-try-trait
-
Add support for
FromResidualforReport - futures = futures-core-crate, pin-project
-
The standard library's implementation of futures
Affects
snafu::futures… - guide
-
Include the built-in user guide documentation
- internal-dev-dependencies = futures-crate
-
No public user should make use of this feature https://github.com/rust-lang/cargo/issues/1596
Features from optional dependencies
In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.