Registry / utility / fehler

fehler

JSON →
library1.0.0rscratesunverified

A library for error-handling syntax in Rust, providing macros like throws and try.

# Cargo.toml [dependencies] fehler = "1.0.0"
INSTALL
IMPORT
SIG · FEHLER
F
fehler
utilityrustv1.0.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.

throws
use fehler::throws;

Uses the throws macro to simplify error handling in a function.

use fehler::throws; #[throws(std::io::Error)] fn read_file() -> String { std::fs::read_to_string("example.txt")? } fn main() { match read_file() { Ok(content) => println!("{}", content), Err(e) => eprintln!("Error: {}", e), } }
Debug
Known issues
gotchaThe throws macro may obscure control flow and is not idiomatic Rust; consider using Result directly.
fix
Prefer standard Result and ? operator for clearer error handling.
affects: >=1.0.0
Upgrade
Version history
1.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

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