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.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of rust libraries

rust libraries

Photo of error backtraces

error backtraces

Related news:

News photo

Around 8% Of Debian Source Packages Are Building Against Rust Libraries