strum 0.20.0

Helpful macros for working with enums and strings


Build Status Latest Version Rust Documentation

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.

strum = "0.20"
strum_macros = "0.20"

# You can also access strum_macros exports directly through strum using the "derive" feature
strum = { version = "0.20", features = ["derive"] }