rustio rustio.net
70

variant_count

v1.2.1 Stable

Derive macro that adds a variant count to an enum.

MIT OR Apache-2.0 Edition 2024
Rust patterns #count#enum#derive#variant

Quick Verdict

  • Actively maintained (updated 4d ago)
  • Stable API (1.x for 7+ years)
  • Trusted by 150 crates
  • Tiny footprint (8KB, 3 deps)
  • Permissive license (MIT OR Apache-2.0)

Security

Checking security advisories...
Downloads
7.0M
Dependents
150
Releases
4
Size
8KB

Deep Insights

📊
Stable downloads

243.6K downloads in the last 30 days (8.1K/day). Volume is roughly flat compared to the previous period.

🔗
Moderate adoption

150 crates depend on variant_count. Reasonable ecosystem adoption, though not yet a core dependency.

Stable for 7+ years

The API has been stable (1.x) for over 7 years with 4 releases. This level of maturity means you can depend on it without worrying about breaking changes.

🪶
Minimal dependencies

Only 3 direct dependencies. Lean dependency tree means faster builds and lower supply chain risk.

📐
Compact crate

At 8KB, variant_count is lightweight. Small crate size correlates with focused, well-scoped functionality.

🌟
Used by top crates

Notable dependents include bf-tree, fluence-it-types, field_types, mv-binary-format, macro-machines. When high-quality crates choose variant_count, it's a strong quality signal.

Health Breakdown

Maintenance 18/25

Recency, release consistency, active ratio

Quality 20/25

Yanked ratio, deps, size, maturity, features

Community 11/20

Reverse deps, ownership, ecosystem

Popularity 8/15

Downloads, momentum, growth trend

Documentation 13/15

Docs, repo, license, metadata

Download Trend

Daily downloads · last 90 days
8K/day avg-56%
010K20K4/265/146/16/197/77/24

Top Dependents

Version Adoption

v1.1.0
87%
v1.2.0
13%
v1.0.0
1%
v1.2.1
0%

Release Timeline

4 releasessince 2018
J
F
M
A
M
J
J
A
S
O
N
D
2018
1
2019
2020
2021
1
2022
2023
2024
2025
1
2026
1
Less
More

README

Loading README...

Maintainers

Dependencies
3
direct dependencies
Dependents
150
crates depend on variant_count

Similar Crates