Thanks to visit codestin.com
Credit goes to lib.rs

Cargo Features

[dependencies]
error-stack = { version = "0.6.0", default-features = false, features = ["std", "backtrace", "tracing", "spantrace", "serde", "hooks", "anyhow", "eyre", "futures", "unstable"] }
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

Public workspace dependencies

Public third-party dependencies

backtrace default = std

Enables automatic capturing of Backtraces (requires Rust 1.65+)

tracing spantrace?

Uses the tracing library if messages would be printed to the terminal

Enables tracing

spantrace = std, tracing

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

Private third-party dependencies

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

futures

Provides support for futures types, such as stream.

Enables futures-core and pin-project-lite

pin-project-lite:

Private workspace dependencies

unstable

Enables unstable features that are not covered under any stability guarantees

Affects error-stack::ext