Registry / utility / exitfailure

exitfailure

JSON →
library0.5.1rscratesunverified

A basic newtype wrapper for use with ? in main.

# Cargo.toml [dependencies] exitfailure = "0.5.1"
INSTALL
IMPORT
SIG · EXITFAILURE
E
exitfailure
utilityrustv0.5.1
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.

ExitFailure
use exitfailure::ExitFailure;

Allows using `?` in main by wrapping errors into ExitFailure.

use exitfailure::ExitFailure; fn main() -> Result<(), ExitFailure> { let x: u32 = "42".parse()?; println!("Parsed: {}", x); Ok(()) }
Debug
Known issues
breakingDeprecated in favor of `anyhow` or `eyre`.
fix
Replace with `anyhow::Result` or `eyre::Result`.
affects: >=0.5.0
Upgrade
Version history
0.5.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
exitfailure — cargo add exitfailure · libregistry