Latest Tech News

Stay updated with the latest in technology, AI, cybersecurity, and more

Filtered by: iroh Clear Filter

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

Iroh: A library to establish direct connection between peers

less net work for networks What is iroh? Iroh gives you an API for dialing by public key. You say “connect to that phone”, iroh will find & maintain the fastest connection for you, regardless of where it is. The fastest route is a direct connection, so if necessary, iroh tries to hole-punch. Should this fail, it can fall back to an open ecosystem of public relay servers. To ensure these connections are as fast as possible, we continuously measure iroh. Built on QUIC Iroh uses Quinn to estab