$ strum
v0.28.0MAJOR UPDATEHelpful macros for working with enums and strings
Latest Update Summary
Crate
Name: strum New version: 0.28.0 Release date: 2026-02-22T15:46:16.247520Z
Crate readme
Short description Strum is a set of macros and traits for working with enums and strings easier in Rust.
Long description Strum provides macros to easily convert strings to enum variants and vice versa, along with other functionality for enumerations. It is compatible with rustc versions >= 1.71.1 and aims to support a rust version for at least two years after its release.
Features • EnumString • Display • FromRepr • AsRefStr • IntoStaticStr • EnumIter • EnumProperty • EnumMessage • EnumDiscriminants • EnumCount
Code Examples Including Strum in Your Project
[dependencies]
strum = "0.28"
strum_macros = "0.28"
# You can also use the "derive" feature, and import the macros directly from "strum"
# strum = { version = "0.28", features = ["derive"] }
Links • https://crates.io/crates/strum • https://docs.rs/strum
https://docs.rs/strum https://api.github.com/repos/Peternator7/strum/releases/289155443
Release info
Release version:
Release description
Code Examples
Minor update: 0.27.2 → 0.28.0
$ DOWNLOADS TREND
$ VERSION HISTORY
$ LINKS
$ INSTALL
cargo add strumOr add to Cargo.toml: strum = "0.28.0"