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 141 crates
  • โœ“Tiny footprint (4KB, 3 deps)
  • โœ“Permissive license (MIT)

Security

Checking security advisories...
Downloads
6.5M
Dependents
141
Releases
3
Size
4KB

Deep Insights

๐Ÿ“ˆ
Strong growth momentum

298.4K downloads in the last 30 days (9.9K/day), up 28% from the previous period.

๐Ÿ”—
Moderate adoption

141 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, bf-tree, macro-machines. 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
9K/day avg+9%
010K20K2/263/164/34/215/95/26

Top Dependents

Version Adoption

v1.1.0
89%
v1.2.0
10%
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
141
crates depend on variant_count

Similar Crates