#error #own #lib #construction #conversion #io-error #fs

simpl

No dependency error handling, and own error construction and conversion lib

2 releases

0.1.0 May 4, 2020
0.1.0-alpha.1 Dec 10, 2019

#55 in #construction

Download history 46457/week @ 2024-03-14 38784/week @ 2024-03-21 59819/week @ 2024-03-28 38523/week @ 2024-04-04 40698/week @ 2024-04-11 44765/week @ 2024-04-18 39803/week @ 2024-04-25 37170/week @ 2024-05-02 39971/week @ 2024-05-09 46705/week @ 2024-05-16 40943/week @ 2024-05-23 37956/week @ 2024-05-30 49740/week @ 2024-06-06 43153/week @ 2024-06-13 42094/week @ 2024-06-20 36646/week @ 2024-06-27

181,229 downloads per month
Used in 97 crates (3 directly)

MIT license

5KB
88 lines

simplerr

Zero dependency error handling.

Usage

[dependancies]
simpl = 0.1.0
use std::fs;
use simpl::err;

err!(ExampleError,
    {
        Io@std::io::Error;
    });

fn main() -> Result<()> {
    fs::create_dir("test")?;
    fs::remove_dir_all("test")?;
    Ok(())
}

No runtime deps