Decision Workspace
dirty_static vs const_fn vs qed
Side-by-side comparison of Rust crates
45
dirty_static
growingv0.1.2
A container for an immutable value that allows sneaky reloading in debug mode (via UnsafeCell) while keeping the data safe and constant in release mode. This allows you to tweak data while testing an application, without having that data be mutable when the application is released. Intended for use with game assets, but suitable for any interactive application.
62
const_fn
growingv0.4.12
A lightweight attribute for easy generation of const functions with conditional compilations.
56
qed
growingv1.6.1
Compile-time assertions
Core Metrics
| dirty_static | const_fn | qed | |
|---|---|---|---|
| Health Score | 45 | 62 | 56 |
| Total Downloads | 3.9K | 54.9M | 67.9K |
| 30d Downloads | 19 | 1.5M | 471 |
| Dependents | 0 | 136 | 0 |
| Releases | 3 | 25 | 10 |
| Last Updated | 148d ago | 24d ago | 1029d ago |
| Age | 6y 5m | 7y 3m | 3y 11m |
Health Breakdown
dirty_static
Maintenance
8
Quality
18
Community
6
Popularity
4
Documentation
9
const_fn
Maintenance
16
Quality
15
Community
12
Popularity
8
Documentation
11
qed
Maintenance
4
Quality
20
Community
11
Popularity
6
Documentation
15
Technical Details
| dirty_static | const_fn | qed | |
|---|---|---|---|
| Version | 0.1.2 | 0.4.12 | 1.6.1 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | CC0-1.0 | Apache-2.0 OR MIT | MIT |
| Dependencies | 0 | 0 | 1 |
| Crate Size | 6KB | 14KB | 6KB |
| Features | 3 | 0 | 0 |
| Yanked % | 0.0% | 4.0% | 0.0% |
| Edition | 2018 | 2018 | 2021 |
| MSRV | — | 1.31 | 1.64.0 |
| Owners | 1 | 1 | 2 (team) |
Links
Quick Verdict
- •const_fn leads with a health score of 62/100, but none of the options score above 80.
- •const_fn is depended on by 136 crates — strongest ecosystem trust.
- •⚠ qed has not been updated in over a year.
- •dirty_static, const_fn are pre-1.0 — API may change.