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 is None) and no longer include the original std::io::Error source in the Display implementation. This is useful if errors are wrapped in another library such as Anyhow.

Features from optional dependencies

tokio implicit feature

Enables tokio

tokio:

An event-driven, non-blocking I/O platform for writing asynchronous I/O backed applications

Affects fs-err::tokio