I thought I would announce the first release of enum_meta. This crate allows attaching metadata to variants of an Enum --- in practice this is most likely to be a C style enum.
The basic usage looks like this.
enum Colour {
Red, Orange, Green
}
meta!{
Colour, &'static str;
Red, "Red";
Orange, "Orange";
Green, "Green";
}
assert_eq!(Red.meta(), "Red");
I thought I would announce it here, because it's my first crate that could be described as fully functional and was interested to get any feedback.