rustio rustio.net
57

variant_count

v1.2.0 Growing

Derive macro for enum which adds to it the count of variants.

MIT Edition 2024
Rust patterns #count#enum#derive#variant

Quick Verdict

  • โœ“Stable API (1.x for 7+ years)
  • โœ“Trusted by 135 crates
  • โœ“Tiny footprint (4KB, 3 deps)
  • โœ“Permissive license (MIT)

Security

Checking security advisories...
Downloads
6.0M
Dependents
135
Releases
3
Size
4KB

Deep Insights

๐Ÿ“ˆ
Strong growth momentum

277.8K downloads in the last 30 days (9.3K/day), up 30% from the previous period.

๐Ÿ”—
Moderate adoption

135 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 3 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 4KB, variant_count is lightweight. Small crate size correlates with focused, well-scoped functionality.

๐ŸŒŸ
Used by top crates

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

Health Breakdown

Maintenance 5/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
7K/day avg+67%
05K10K15K12/301/172/42/223/123/29

Top Dependents

Version Adoption

v1.1.0
91%
v1.2.0
9%
v1.0.0
1%

Release Timeline

3 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
Less
More

README

Loading README...

Maintainers

Dependencies
3
direct dependencies
Dependents
135
crates depend on variant_count

Similar Crates