Cargo Features

[dependencies]
err_trail = { version = "0.8.5", default-features = false, features = ["tracing", "log", "defmt", "stub"] }
default = stub

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

tracing

Enables support for the tracing crate. Adds methods to Result that are applied on Err - e.g. result.warn(...).

Enables tracing

log

Enables support for the log crate. Adds methods to Result that are applied on Err - e.g. result.warn(...).

Enables log

defmt

Enables support for the defmt crate, which works with no_std. Adds methods to Result that are applied on Err - e.g. result.warn(...).

Enables defmt

stub default

Enables support for the log/tracing/defmt api, without pulling in any crates. Allowing a downstream to choose the appropriate crate.