const-gen
v1.6.9 StableA crate for generating (relatively) complex compile-time constants in rust.
Quick Verdict
- โActively maintained (updated 37d ago)
- โStable API (1.x for 4+ years)
- โTiny footprint (11KB, 2 deps)
- โPermissive license (MIT OR Apache-2.0)
Security
Deep Insights
27.8K downloads in the last 30 days (925/day). Volume is roughly flat compared to the previous period.
The API has been stable (1.x) for over 4 years with 45 releases. This level of maturity means you can depend on it without worrying about breaking changes.
Only 2 direct dependencies. Lean dependency tree means faster builds and lower supply chain risk.
At 11KB, const-gen is lightweight. Small crate size correlates with focused, well-scoped functionality.
Notable dependents include rmk, sax-fingering-chart, rktk, systemd-hardening-helper, sunshine-tray. When high-quality crates choose const-gen, it's a strong quality signal.
Health Breakdown
Recency, release consistency, active ratio
Yanked ratio, deps, size, maturity, features
Reverse deps, ownership, ecosystem
Downloads, momentum, growth trend
Docs, repo, license, metadata
Download Trend
Top Dependents
Most downloaded crates that depend on const-gen
Version Adoption
Release Timeline
Feature Flags
default =["std", "derive", "phf"]