Cargo Features
[dependencies]
snafu = { version = "0.7.5", default-features = false, features = ["std", "unstable-core-error", "rust_1_39", "rust_1_46", "rust_1_61", "backtraces", "backtraces-impl-backtrace-crate", "unstable-backtraces-impl-std", "backtraces-impl-std", "unstable-provider-api", "unstable-try-trait", "futures", "guide", "internal-dev-dependencies"] }
- default = rust_1_46, std
-
These default features are set whenever
snafu
is added without
somewhere in the dependency tree.default-features = false - std default backtraces?
-
Implement the
std::error::Error
trait.Affects
report::CleanedErrorText
… - unstable-core-error
-
Implement the
core::error::Error
trait. - rust_1_39 rust_1_46
-
Add support for
async
/.await
Enables rust_1_39 of snafu-derive
- rust_1_46 default rust_1_61? = rust_1_39
-
Add support for
#[track_caller]
Enables rust_1_46 of snafu-derive
- rust_1_61 = rust_1_46
-
Add support for
Termination
forReport
Enables rust_1_61 of snafu-derive
- backtraces backtraces-impl-backtrace-crate? = backtrace, std
-
Makes the backtrace type live
- backtraces-impl-backtrace-crate = backtraces
-
The backtrace type becomes
backtrace::Backtrace
- unstable-backtraces-impl-std = backtraces-impl-std
-
We implement
std::error::Error::backtrace
Enables unstable-backtraces-impl-std of snafu-derive
- backtraces-impl-std unstable-backtraces-impl-std?
-
The backtrace type becomes
std::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.