Cargo Features
[dependencies]
error-stack = { version = "0.5.0", default-features = false, features = ["std", "backtrace", "spantrace", "serde", "hooks", "anyhow", "eyre"] }
- default = backtrace, std
-
These default features are set whenever
error-stack
is added without
somewhere in the dependency tree.default-features = false - std default backtrace eyre? spantrace?
-
Enables support for
Error
Enables std of optional anyhow
Affects
context::Context.__source
… - backtrace default = std
-
Enables automatic capturing of
Backtrace
s (requires Rust 1.65+) - spantrace = std
-
Enables automatic capturing of
SpanTrace
sEnables tracing-error
- serde
-
Enables serialization support
Enables serde
- hooks
-
Enables hooks on
no-std
platforms using spin locksEnables spin
- anyhow
-
Provides
into_report
to convertanyhow::Error
toReport
Enables anyhow
- eyre = std
-
Provides
into_report
to converteyre::Report
toReport
Enables eyre