Registry / utility / anyhow

anyhow

JSON →
library1.0.102rscratesunverified

Flexible concrete Error type built on std::error::Error.

# Cargo.toml [dependencies] anyhow = "1.0.102"
INSTALL
IMPORT
SIG · ANYHOW
A
anyhow
utilityrustv1.0.102
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Result
use anyhow::Result;

Uses anyhow::Result to propagate errors with minimal boilerplate.

use anyhow::Result; fn main() -> Result<()> { let x: i32 = "42".parse()?; println!("{}", x); Ok(()) }
Debug
Known issues
gotchaAnyhow is not suitable for library APIs where callers need to match on specific error types.
fix
Use thiserror for library error types and anyhow only in application code.
affects: >=1.0.0
Upgrade
Version history
1.0.102latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
24
OpenAI (training)
2
Meta
1
Resources
anyhow — cargo add anyhow · libregistry