#error #own #construction #conversion #lib #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

#57 in #construction

Download history 41883/week @ 2024-08-02 47134/week @ 2024-08-09 41461/week @ 2024-08-16 55499/week @ 2024-08-23 38076/week @ 2024-08-30 52892/week @ 2024-09-06 32953/week @ 2024-09-13 50038/week @ 2024-09-20 50818/week @ 2024-09-27 35431/week @ 2024-10-04 49202/week @ 2024-10-11 55548/week @ 2024-10-18 41201/week @ 2024-10-25 40324/week @ 2024-11-01 54151/week @ 2024-11-08 62961/week @ 2024-11-15

207,968 downloads per month
Used in 98 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