Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upCustom derive #12
Comments
This comment has been minimized.
This comment has been minimized.
cardoe
commented
Aug 30, 2017
|
fwiw, I've got one published at https://crates.io/crates/enum-primitive-derive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Michael-F-Bryan commentedAug 11, 2017
Now that custom derives are stable, would this be better done using them instead of a macro_rules macro? That way you can have the
FromPrimitiveandToPrimitivetrait definitions inenum_primitiveand then aenum_primitive_derivecrate to do the deriving.I think something like this is more applicable to macros 1.1 than macros by example, and that way you also fix up long-standing issues like being unable to document each variant.