This crate uses macros 1.1 to derive custom errors.
Add this crate to your dependencies section:-
text
[dependencies]
derive-error = "0.0.0"
Import it in your main.rs
or lib.rs
:-
```rust,ignore
extern crate derive-error; ```
Deriving errors is simple. Here is an example:
```rust,norun
pub enum Error { Io(::std::io::Error), } ```
That's it!