Cargo Features
fs-err has no features set by default.
[dependencies]
fs-err = { version = "3.3.0", features = ["debug", "debug_tokio", "expose_original_error"] }
- debug = path_facts
-
Debug filesystem errors faster by exposing more information. Suggested for use in
dev-dependencies. Note: Requires Rust 1.79+ due to path_facts dependency - debug_tokio = path_facts
-
Enables rt-multi-thread of 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::Errorsource in theDisplayimplementation. This is useful if errors are wrapped in another library such as Anyhow.
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.
- tokio debug_tokio?
-
Affects
fs-err::tokio… - path_facts debug? debug_tokio?