Trying to get error backtraces in Rust libraries right
Error handling in Rust is one of those topics that can spark passionate debates in the community. After wrestling with various approaches in the iroh codebase, the team has developed some insights about the current state of error handling, the tradeoffs involved, and how to get the best of both worlds. The Great Error Handling Divide The Rust ecosystem has largely coalesced around two main approaches to error handling: The anyhow approach: One big generic error type that can wrap anything. It