Releases: dtolnay/anyhow
Releases · dtolnay/anyhow
1.0.31
1.0.30
1.0.29
1.0.28
1.0.27
-
Improve documentation of backtrace environment variable combinations (#69)
- If you want panics and errors to both have backtraces, set
RUST_BACKTRACE=1; - If you want only errors to have backtraces, set
RUST_LIB_BACKTRACE=1; - If you want only panics to have backtraces, set
RUST_BACKTRACE=1andRUST_LIB_BACKTRACE=0.
- If you want panics and errors to both have backtraces, set
1.0.26
1.0.25
-
Add no-std support (#53)
In no_std mode, the same API is almost all available and works the same way. To depend on Anyhow in no_std mode, disable our default enabled "std" feature in Cargo.toml. A global allocator is required.
[dependencies] anyhow = { version = "1.0", default-features = false }
Since the
?-based error conversions would normally rely on thestd::error::Errortrait which is only available through std, no_std mode will require an explicit.map_err(Error::msg)when working with a non-Anyhow error type inside a function that returns Anyhow's error type.
1.0.24
1.0.23
- Add
impl AsRef<dyn std::error::Error>andimpl AsRef<dyn std::error::Error + Send + Sync>for anyhow::Error - Add
Chain::newconstructor