Cargo Features

[dependencies]
anyhow = { version = "1.0.93", default-features = false, features = ["std", "backtrace"] }
default = std

The std feature is set by default whenever anyhow is added without default-features = false somewhere in the dependency tree.

std default

Affects kind::Boxed, kind::BoxedKind, anyhow::Chain, wrapper::BoxedError

Features from optional dependencies

backtrace implicit feature

Enables backtrace

On compilers older than 1.65, features=["backtrace"] may be used to enable backtraces via the backtrace crate. This feature has no effect on 1.65+ besides bringing in an unused dependency, as std::backtrace is always preferred.