When designing error types in Rust, especially for libraries with a public API, there are several important considerations to keep in mind. This post will explore some of the important implications and common pitfalls when designing error types in Rust libraries. Further, we will look at
thiserror
and how the Rust standard library'sstd::io::Error
can serve as a reference for designing your own error types.
Read in full here: