Ergonomic errors in Rust: Stackerror (gmcgoldr.github.io)
from alienscience@programming.dev to rust@programming.dev on 23 Aug 06:17
https://programming.dev/post/36170793

I have been using thiserror, and somtimes snafu, for error handling in libraries and anyhow for error handling in applications.

This blog post describes a new library, Stackerror, that looks interesting. The post also gives a good overview of error handling in Rust.

#rust

threaded - newest

alienscience@programming.dev on 23 Aug 06:18 next collapse

Github page for the library: https://github.com/gmcgoldr/stackerror

alzymologist@sopuli.xyz on 23 Aug 08:56 next collapse

no no_std?

sukhmel@programming.dev on 23 Aug 10:13 next collapse

I’m not entirely sold on the idea, because the article shows no example of defining and using special error codes. It leaves an impression that if anything you want to recover from is IO and HTTP (no HTTP/2, too) then it’s all good.

Still it looks interesting and I will take a deeper look into it later

arcterus@piefed.blahaj.zone on 23 Aug 14:07 collapse

I may be wrong since it seemed to mostly gloss over deriving new errors, but this article gave me the impression that it's not much different from a predefined thiserror type.