from-enum 0.1.1

Provides a derive proc macro for deriving From on enums
Documentation

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),
}