2 releases

0.1.1 Sep 10, 2022
0.1.0 Sep 10, 2022

#313 in No standard library

38 downloads per month

MIT license

3KB

from-enum

It has the same interface as thiserror's #[from] attribute, but it works in no-std.

Example

use from_enum::From;

#[derive(From)]
enum MyEnum {
    String(#[from] String),
    Int(#[from] i32),
}

Dependencies

~1.5MB
~34K SLoC