Cargo Features
[dependencies]
snafu = { version = "0.8.5", default-features = false, features = ["std", "unstable-core-error", "rust_1_61", "rust_1_65", "rust_1_81", "backtraces-impl-backtrace-crate", "unstable-provider-api", "unstable-try-trait", "futures", "guide", "internal-dev-dependencies"] }
- default = rust_1_65, std
-
These default features are set whenever
snafu
is added without
somewhere in the dependency tree.default-features = false - std default
-
Implement the
std::error::Error
trait.Affects
report::CleanedErrorText
… - unstable-core-error
-
Implement the
core::error::Error
trait. - rust_1_61 rust_1_65
-
Add support for
Termination
forReport
Enables rust_1_61 of snafu-derive
- rust_1_65 default rust_1_81? = rust_1_61
-
Backtrace
was stabilized - rust_1_81 = rust_1_65
-
core::error
was 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
FromResidual
forReport
- 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.