[−][src]Module snafu::guide::feature_flags
Optional extensions to the crate
In addition to the feature flags controlling compatibility, there are Cargo feature flags that extend SNAFU for various use cases.
backtraces
default: enabled
When enabled, you can use the Backtrace type in
your enum variant. If you never use backtraces, you can omit this
feature to speed up compilation a small amount.
backtrace-crate
default: disabled
When enabled, you can convert the SNAFU Backtrace type to the
underlying backtrace::Backtrace type. This allows interoperability
with other crates that require this type.
It is recommended that only applications make use of this feature. At some point in the future, the standard library will have its own backtrace type that SNAFU will use and this feature may conflict with its use.
unstable-futures
default: disabled
When enabled, you can use the futures::TryFutureExt and
futures::TryStreamExt traits to add context methods to futures
and streams returning Results.
Note that this feature requires nightly Rust and may break at any time. When the standard library implementation stabilizes, this feature flag will be renamed and stabilized.
futures-01
default: disabled
When enabled, you can use the futures01::FutureExt and
futures01::StreamExt traits to add context methods to futures
and streams.