Registry / utility / aok
library0.1.18rscratesunverified

Simplified error handling with anyhow. throw! macro returns directly.

# Cargo.toml [dependencies] aok = "0.1.18"
INSTALL
IMPORT
SIG · AOK
A
aok
utilityrustv0.1.18
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.

throw
use aok::throw;

Uses the throw! macro to return early with an error.

use aok::throw; fn main() -> Result<(), anyhow::Error> { let x = 42; if x < 50 { throw!("x is too small: {}", x); } Ok(()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.18latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

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