dtolnay/anyhow
Flexible concrete Error type built on std::error::Error observed · 2026-08-28
Health v2 · maintenance only
97/100
- Activity 99
- Release rhythm 93
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 23
- age_days: 2524
- days_rel: 46
- days_push: 11
- n_releases_24m: 18
Adoption not part of the score
6631 stars · 221 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A Rust library providing anyhow::Error, a trait-object-based concrete error type for idiomatic error handling in applications. It supports easy error propagation with ?, context attachment, downcasting, and optional backtrace capture.
Use cases
- handle errors in a Rust application without defining custom error types
- propagate errors with the ? operator across fallible functions
- add human-readable context to low-level errors like IO failures
- downcast errors to underlying concrete error types
- capture and print backtraces for errors
- simplify error handling in application code rather than library code
When to choose
- you are building a Rust application and want ergonomic error handling
- you want a single concrete error type instead of custom error enums
- you need to attach context messages to errors as they bubble up
- you want backtrace support with minimal boilerplate
When to avoid
- you are writing a public library where callers need to match on specific error variants
- you need structured, typed error enums for programmatic error handling
- you need no_std or embedded support
Facets
library · maturity stable
error-handling developer-tools programming-languages rust error-type rust-library result backtrace error-context
2 sources
- readme: https://github.com/dtolnay/anyhow · fetched 2026-08-28 · fc09a1e1cd57
- registry_crates: https://crates.io/api/v1/crates/anyhow · fetched 2026-08-29 · 5605a11feef5
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| dtolnay/anyhow | main | 97 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem