rust-error-utils
A collection of some rust macros to simplify common error handling patterns.
Usage
Add to Cargo.toml:
[]
= "https://gitlab.com/robert-oleynik/rust-error-utils.git"
handle_err Macro
use handle_err;
use Path;
See Documentation
fail Macro
Shorthand for std::process::exit
fail!;
// or
fail!;
See Documentation
Errors Derive Macro
This Macro requires the
derivefeature. (Enabled per default)
Note: This example uses the toml crate.
use Path;
use Errors;
See Documentation
License
This project is license under the MIT license. See
LICENSE