News for hackers. Stuff that matters.
Re:Implementing Rust newtype for errors in axum by goddtriffin on Monday November 17, 2025 @03:32PM (#45957955)
Great post. I do the same thing for all of my Rust web servers too. I don't use anyhow though, prefer rolling everything myself - which as you call out is a pain after a while.
Re:Implementing Rust newtype for errors in axum by ruptwelve on Monday November 17, 2025 @04:10PM (#45958333)
`Anyhow` is a great thing to get you started. But ultimately you wanna use some bespoke errors, and just roll your own!