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 default-features = false somewhere in the dependency tree.

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 Backtraces (requires Rust 1.65+)

spantrace = std

Enables automatic capturing of SpanTraces

Enables tracing-error

serde

Enables serialization support

Enables serde

hooks

Enables hooks on no-std platforms using spin locks

Enables spin

anyhow

Provides into_report to convert anyhow::Error to Report

Enables anyhow

eyre = std

Provides into_report to convert eyre::Report to Report

Enables eyre