Get the latest tech news
Guide to Error Handling in Rust
Learn to model and handle every conceivable error scenario using idomatic Rust.
Forcing them to dig into your crate's error types, identify the possible culprits, downcast, and react dynamically screams "leaky implementation details". anyhow comes with a selection of macros, methods and blanket implementations to make wrapping and adding context to any Display + Send + Sync + 'static type a breeze. As a general rule, return only your own or standard library error types across crate boundaries to minimize leakage of your implementation details into other people's code.
Or read this on Hacker News