Cargo Features

[dependencies]
snafu = { version = "0.8.2", default-features = false, features = ["std", "unstable-core-error", "rust_1_61", "rust_1_65", "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 default-features = false somewhere in the dependency tree.

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 for Report

Enables rust_1_61 of snafu-derive

rust_1_65 default = rust_1_61

Backtrace 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 for Report

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.

backtrace backtraces-impl-backtrace-crate?
futures-crate internal-dev-dependencies?

Enables futures

futures-core-crate futures?

Enables futures-core

pin-project futures?