Re:Guide to Error Handling in Rust
by xvedejas on Sunday August 25, 2024 @11:03AM
(#41347792)
I personally have used it because it can provide backtraces in stable Rust. It also can be used either similarly to anyhow (with the `whatever` macro) or more like thiserror (with explicit errors as enum variants). I don't have experience with eyre so can't provide a comparison there.
[ Parent
| on HN ]
Re:Guide to Error Handling in Rust
by shepmaster on Sunday August 25, 2024 @11:26AM
(#41347954)
Do note that the standard library has stabilized backtraces now, so you only need that if you are targeting an older version of Rust.
https://doc.rust-lang.org/std/backtrace/struct.Backtrace.htm...