News for hackers. Stuff that matters.
Re:Migrating from Go to Rust by kelnos on Monday May 25, 2026 @12:48AM (#48263486)
thiserror and anyhow are std::error::Error with fewer steps.
Re:Migrating from Go to Rust by LoganDark on Monday May 25, 2026 @02:51AM (#48264140)
They're external crates that either generate Error implementations (thiserror) or act as dynamic wrappers implementing Error (anyhow), so they're more than a simple hand-written implementation. But the developer experience of pulling thiserror or anyhow off the shelf can certainly be more convenient than the hand-written implementation, sure.