PSA: `thiserror` 2.0.0 released: officially gains `no_std` support 🎉

404 points U007D

I discovered quite by accident this morning as I was editing a Cargo.toml that thiserror now has a version 2.0.0 release.

I couldn't find any release notes or changelogs*, but looking at the most recent set of commits, it now supports #[no_std] environments by setting default-features = false under rustc 1.81.0+ (where Error moved to core).

This may be relevant to you if you do embedded, bare-metal or Wasm Rust development.

Credit and thanks to the author and maintainer, /u/dtolnay.

--

thiserror is a best-in-class Rust "error management library" designed to facilitate creation and maintenance of bespoke error hierarchies, minimizing boilerplate while not appearing in your crate's public API.

*Edit: Thanks, /u/VorpalWay for the release notes link. There are other new features as well.