dtolnay/anyhow
69.1
Adequate · 14 November 2026
3.5k
lines of production code
Rust
primary language
5
measurements over time
What this system is
Features
Initial release of anyhow 1.0.0
This entry marks the initial commit and 1.0.0 release of the anyhow crate, introducing a trait-object based error type for idiomatic Rust error handling. The package includes the core library implementation, a build script for compiler feature probing, and comprehensive documentation in the README covering usage, no-std support, and comparisons to other error-handling libraries. The project is dual-licensed under MIT or Apache 2.0.
(repo-wide) · high confidence
Behavioural changes
Complete internal rewrite of the error handling engine
The internal implementation of the error handling engine has been completely rewritten to improve performance, reduce binary size, and modernize the codebase. This change introduces a new modular structure with dedicated files for backtrace capture (\backtrace.rs\), error chaining (\chain.rs\), context attachment (\context.rs\), and formatting (\fmt.rs\). It replaces the previous vtable-based error storage with a more efficient tagged-dispatch mechanism (\kind.rs\) and safe pointer wrappers (\ptr.rs\). The \ensure!\ macro has been significantly enhanced with a custom parser (\ensure.rs\) to support complex expressions and provide detailed debug output for comparison failures. Additionally, backtrace support is now integrated via the \error\_generic\_member\_access\ API on nightly compilers and the standard \std::backtrace\ on stable Rust 1.65+, ensuring consistent backtrace availability across versions.
src · high confidence
Test coverage
Added UI tests for \ensure!\ and \anyhow!\ macro edge cases; Added test crate with no\_std support and gitignore rules; Added test utilities for verifying Drop behavior; Comprehensive test suite for anyhow error handling.
Dependencies
Release 1.0.104 with Rust 1.68 requirement and syn 3 upgrade
The anyhow crate has been updated to version 1.0.104, raising the minimum required Rust compiler version to 1.68 and migrating the build to the 2021 edition. This release upgrades the syn dependency to version 3 and updates dev-dependencies to include thiserror v2 and trybuild v1.0.108. The crate now explicitly declares support for no-std environments via a dedicated feature flag and configures docs.rs to generate link-to-definition and macro-expansion documentation.
(dependencies) · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 69 → 69 (-0.0)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.
Lenses
- Code Health 100 → 98 (-1.3)
- Architecture 98 → 97 (-1.1)
- Maturity 52 → 52 (+0.0)
- Readiness 69 → 70 (+1.0)
- Security 100 → 100 (+0.0)
Resolved (1)
- Inverted test pyramid
New (5)
- Edited copies of one member (4 members, 19+ corresponding lines) (src/error.rs)
- Edited copy of a member (11 corresponding lines) (src/chain.rs)
- Edited copy of a member (9 corresponding lines) (src/error.rs)
- Low coverage: src/backtrace.rs (src/backtrace.rs)
- Low coverage: src/wrapper.rs (src/wrapper.rs)
Changes since last survey
- 1 commits — 1 feature/other, 0 fixes
By area
- tests/ui — 1 commit
Notable commits
- change: Update ui test suite to nightly-2026-11-03
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
dtolnay/anyhow was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 14 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 87c8571326d60b90391d0555c9675b5ac6f044b1 — the exact code this score is about.
- Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-e1a3b69fc8ee.