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 whenevererr_trail
is added without
somewhere in the dependency tree.default-features = false - tracing
-
Enables support for the tracing crate. Adds methods to
Result
that are applied onErr
- e.g.result.warn(...)
.Enables tracing
- log
-
Enables support for the log crate. Adds methods to
Result
that are applied onErr
- 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 onErr
- 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.