
Rust
Anyhow vs Thiserror and Which One to Use in Your Crate
Use thiserror when callers need to match on what went wrong and anyhow when they only need to read it. Here is the rule, the code for each, and how to mix them.
8 min read
Tag
1 post

Use thiserror when callers need to match on what went wrong and anyhow when they only need to read it. Here is the rule, the code for each, and how to mix them.