Cargo Features
error_set has no features set by default.
[dependencies]
error_set = { version = "0.8.5", features = ["tracing", "log", "defmt", "context_stub"] }
- tracing
-
Enables support for the tracing crate. Adds methods to
Result
that are applied onErr
- e.g.result.warn(...)
.Enables tracing of err_trail and tracing
features
- log
-
Enables support for the log crate. Adds methods to
Result
that are applied onErr
- e.g.result.warn(...)
. - defmt
-
Enables support for the defmt crate, which works with no_std. Adds methods to
Result
that are applied onErr
- e.g.result.warn(...)
. - context_stub
-
Enables support for the log/tracing/defmt api, without pulling in any crates. Allowing a downstream to choose the appropriate crate.
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.