Crate

strum

Derive macros for enums — iteration, display, and string conversion.

What it is

strum provides derive macros that add practical functionality to Rust enums: EnumIter to iterate all variants, Display for string formatting, EnumString to parse from strings, and AsRefStr for string views. strum_macros is the companion proc-macro crate.

Why it is commonly used

Used when enum variants need to be converted to and from strings, iterated, or counted — CLI subcommands, configuration keys, state machines, and any enum that requires programmatic traversal.

705
Repositories
91%
Actively maintained
638
Updated ≤ 30 days
3.0M
Total stars
606
Owners

Counted from the Cargo.toml manifests of the 705 indexed repositories that declare strum as a dependency — not download counts. Dependency data last verified 2026-08-13.

Browse 705 repositories using strum in Repos →
Often used with

Crates that show up unusually often in strum projects. The most distinctive pairings rank first — crates these projects use far more than the average indexed Rust project does, not just crates that are popular everywhere. Each percentage is the share of strum projects that also use it.

Used by these organizations
50 of 705 repositories · ranked by stars · 638 pushed in the last 30 days
bun95kactive

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one

⑂ 5.0k8.0k
union74kactive

The trust-minimized, zero-knowledge bridging protocol, designed for censorship resistance, extremely high security, and usage in decentralized finance.

hyperswitch43kactive

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

servo38kactive

Servo aims to empower developers with a lightweight, high-performance alternative for embedding web technologies in applications.

⑂ 3.7k3.1k
qdrant34kactive

Qdrant - High-performance, massive-scale Vector Database and Vector Search Engine for the next generation of AI. Also available in the cloud https://cloud.qdrant.io/

rustfs31kactive

🚀2.3x faster than MinIO for 4KB object payloads. RustFS is an open-source, S3-compatible high-performance object storage system supporting migration and coexistence with other S3-compatible platforms such as MinIO and Ceph.

Graphite27kactive

Community-built comprehensive 2D content creation appplication for graphic design, digital art, and interactive real-time motion graphics powered by a node-based procedural graphics engine

neon23kmaintenance

Neon: Serverless Postgres. We separated storage and compute to offer autoscaling, code-like database branching, and scale to zero.

⑂ 1.1k552
← Browse all repos