Crate

thiserror

Derive macros for ergonomic custom error types.

What it is

thiserror provides a #[derive(Error)] macro that generates std::error::Error implementations for custom error types. Enum variants take #[error("...")] display strings with field interpolation and #[from] attributes for automatic From conversions.

Why it is commonly used

The standard way to define error types in library crates. Typically paired with anyhow: thiserror for typed library-level errors that callers can match on, anyhow for application-level error propagation where the type does not matter.

2.8k
Repositories
90%
Actively maintained
2.4k
Updated ≤ 30 days
6.1M
Total stars
2.2k
Owners

Counted from the Cargo.toml manifests of the 2.8k indexed repositories that declare thiserror as a dependency — not download counts. Dependency data last verified 2026-08-13.

Browse 2752 repositories using thiserror in Repos →
Often used with

Crates that show up unusually often in thiserror projects. The most distinctive pairings rank first — crates these projects use far more than the average indexed Rust project does, not just crates that are popular everywhere. Each percentage is the share of thiserror projects that also use it.

Used by these organizations
50 of 2.8k repositories · ranked by stars · 2.4k pushed in the last 30 days
bun95kactive

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one

⑂ 4.9k7.8k
RuView89kactive

π RuView turns commodity WiFi signals into real-time spatial intelligence, vital sign monitoring, and presence detection — all without a single pixel of video.

union74kactive

The trust-minimized, zero-knowledge bridging protocol, designed for censorship resistance, extremely high security, and usage in decentralized finance.

hyperswitch43kactive

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

qdrant34kactive

Qdrant - High-performance, massive-scale Vector Database and Vector Search Engine for the next generation of AI. Also available in the cloud https://cloud.qdrant.io/

rustfs31kactive

🚀2.3x faster than MinIO for 4KB object payloads. RustFS is an open-source, S3-compatible high-performance object storage system supporting migration and coexistence with other S3-compatible platforms such as MinIO and Ceph.

cli30kactive

Google Workspace CLI — one command-line tool for Drive, Gmail, Calendar, Sheets, Docs, Chat, Admin, and more. Dynamically built from Google Discovery Service. Includes AI agent skills.

← Browse all repos