dtolnay/thiserror
derive(Error) for struct and enum error types observed · 2026-08-28
Health v2 · maintenance only
98/100
- Activity 99
- Release rhythm 96
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 4.0
- age_days: 2520
- days_rel: 25
- days_push: 11
- n_releases_24m: 27
Adoption not part of the score
5526 stars · 214 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A Rust library providing a convenient derive macro for implementing the standard library's std::error::Error trait on structs and enums. It generates Display impls and error conversions from attribute annotations without appearing in your public API.
Use cases
- define custom error types in rust
- implement std::error::Error without boilerplate
- generate display messages for error enums
- convert underlying errors with #[from]
- make library error types ergonomic
When to choose
- writing application or library code in rust that needs idiomatic error types
- you want handwritten-quality Error impls with minimal code
- you need error messages with interpolated fields
When to avoid
- building applications where you want anyhow-style dynamic errors instead of typed enums
- working outside the rust ecosystem
Facets
library · maturity stable
error-handling serialization developer-tools programming-languages rust derive-macro std-error-trait ergonomics
2 sources
- readme: https://github.com/dtolnay/thiserror · fetched 2026-08-28 · 812a15055001
- registry_crates: https://crates.io/api/v1/crates/thiserror · fetched 2026-08-29 · 9d4c176a1cc6
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| dtolnay/thiserror | main | 98 |
For agents
markdown · JSON · MCP: product_card(name="dtolnay/thiserror")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem