Cargo Features
fs-err has no features set by default.
[dependencies]
fs-err = { version = "3.0.0", features = ["expose_original_error", "tokio"] }
- expose_original_error
-
Allow custom formatting of the error source
When enabled errors emit
std::error::Error::source()
as Some (default isNone
) and no longer include the originalstd::io::Error
source in theDisplay
implementation. This is useful if errors are wrapped in another library such as Anyhow.