Strum
Strum is a set of macros and traits for working with enums and strings easier in Rust.
The full version of the README can be found on Github.
Including Strum in Your Project
Import strum and strum_macros into your project by adding the following lines to your Cargo.toml. Strum_macros contains the macros needed to derive all the traits in Strum.
[]
= "0.19"
= "0.19"
# You can also access strum_macros exports directly through strum using the "derive" feature
= { = "0.19", = ["derive"] }