Adding strum library as a dependency

Run this command in a terminal, in your project's directory:

cargo add strum

To add it manually, edit your project's Cargo.toml file and add to the [dependencies] section:

strum = "0.27.2"

The strum library will be automatically available globally. Read the strum library documentation.

Back to the crate overview.