Get the latest tech news
Trying to get error backtraces in Rust libraries right
Read about iroh's approach to error handling
This required some careful incantations to work around the Into trait conflicts, but the result is that developers can now have an IO error nested three levels deep and still get a complete backtrace. Use structured errors for public APIs where consumers need to handle different cases Preserve rich context and backtraces for debugging Iroh is open source, and already running in production on hundreds of thousands of devices.To get started, take a look at our docs, dive directly into the code, or chat with us in our discord channel.
Or read this on Hacker News