From Any to This
summary
A large refactor replaces anyhow with concrete thiserror types across 14 repos and ~50 crates, creating a new dino_error macro to derive JS error classes, export additional properties, and generate boxed variants; about 210 errors rewritten and a helper for boxing avoids giant enum payloads. The work spans months, requires briefly blocking main to land, increases binary size modestly, and yields concrete benefits: predictable Result types, easier downcasting and error origin tracking, and fewer string-matching hacks.
AI-written summary · about
chapters (12)
- 0:00Error handling in Dino
- 1:53Anyhow in libraries problems
- 3:44JavaScript-Rust errors
- 6:36Dino_error macro crate
- 9:51Macros define JS errors
- 13:03Rust macro error best practices
- 14:27Rust to JS exceptions
- 15:11Boxed_error for boxing
- 16:58Switching to this_error outcomes
- 19:06Rolling out changes challenges
- 19:48Feedback and impact
- 20:10Rewriting anyhow to this_error








