Crates / Compare / thiserror vs scopeguard
Rust crates side by side · data Oct 24, 2026
thiserror vs scopeguard
Short answerBy steady daily use, thiserror is bigger: 5,048,791 real downloads a day against 2,724,718 for scopeguard (1.9x). 75,923 crates depend on thiserror and 567 on scopeguard. thiserror last shipped 31 days ago, scopeguard 3.3 years ago.
thiserror
FoundationalFoundational and steady.
75,923 crates depend on it; downloads don't spike on releases.
derive(Error)
scopeguard
EstablishedEstablished and quiet for years.
567 crates depend on it; no release in the last 90 days, so its count is all steady use.
A RAII scope guard that will run a given closure when it goes out of scope, even if the code between panics (assuming unwinding panic). Defines the macros `defer!`, `defer_on_unwind!`, `defer_on_success!` as shorthands for guards with one of the implemented strategies.
thiserrorscopeguard · 100% = that crate's normal quiet day, so a spike to 300% is triple its usual traffic
Every number, side by side
| Same window, same method | thiserror | scopeguard |
|---|---|---|
| Real downloads a day | 5,048,791 | 2,724,718 |
| Crates that depend on it | 75,923 | 567 |
| Last release | 2.0.21, 31 days ago | 1.2.0, 3.3 years ago |
| Trend vs the field | +1% | -3% |
| Release-window share | 3.8% | 0.0% |
| Downloads in the window | 456,070,996 | 239,532,611 |
| All-time downloads | 1,690,852,060 | 1,060,801,749 |
| Versions published | 92 | 11 |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| MSRV | 1.77 | not set |
| First published | Oct 9, 2019 | Apr 30, 2015 |
Which to pick
- Downloads tell you what is common, not what fits. Each crate's own description above says what it is for; when the jobs differ, pick by the job.
- When both fit, prefer the one more crates depend on (thiserror, 75,923 dependents): more eyes, more answered questions, and you may already have it in your tree.
- Check the release dates against your own pace: thiserror 31 days ago, scopeguard 3.3 years ago.
Also in this space
Method
Real downloads = the median day with no release that day or the day before, from the crates.io API (Jul 27, 2026 to Oct 23, 2026). Raw crates.io counts include CI and bots and run high (why); the method is from our 90-day study.
Up next
Another comparison: Same method, same window. Foundational and steady vs foundational and steady.anyhow vs thiserrorRead it next →Also worth your time