Registry / cli / die
library0.2.0rscratesunverified

Handle errors and exit in command line programs easily.

# Cargo.toml [dependencies] die = "0.2.0"
INSTALL
IMPORT
SIG · DIE
D
die
clirustv0.2.0
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.

Die
use die::Die;

Exit with error message on failure.

use die::Die; fn main() { let value: Result<i32, _> = Ok(42); let num = value.die(); println!("{}", num); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
23 hits · last 30 days
node
22
Amazon
1
Resources
die — cargo add die · libregistry