Skip to content
Rust Search
← Browse conferences

From any to this: using concrete error types instead of a catchall

EuroRust
22:16 1664 views

Ever since the Deno project has been written in Rust, it has used anyhow for error handling across the entire codebase. This has proven to be problematic in various ways, and ergonomically difficult to handle complex errors coming from all over the place. As such, a refactoring project spanning 14 repositories, over 50 crates and multiple months was initiated for which the goal was to remove the “viral” anyhow crate in favour of using thiserror and concrete error types. The ways we achieved thi

Player unavailable or embedding blocked? Use the YouTube link above.