Decision Workspace
const_fn_assert vs assert-struct vs const-anonymous-functions
Side-by-side comparison of Rust crates
49
const_fn_assert
growingv0.1.3+deprecated
Assertions for const functions.
63
assert-struct
experimentalv0.4.2
A procedural macro for ergonomic structural assertions in tests
46
const-anonymous-functions
growingv1.1.0
Simple macro to create const anonymous functions
Core Metrics
| const_fn_assert | assert-struct | const-anonymous-functions | |
|---|---|---|---|
| Health Score | 49 | 63 | 46 |
| Total Downloads | 464.6K | 7.3K | 3.6K |
| 30d Downloads | 3.3K | 2.3K | 43 |
| Dependents | 49 | 10 | 2 |
| Releases | 4 | 7 | 2 |
| Last Updated | 1054d ago | 4d ago | 963d ago |
| Age | 6y 4m | 7m | 2y 7m |
Health Breakdown
const_fn_assert
Maintenance
3
Quality
16
Community
11
Popularity
7
Documentation
12
assert-struct
Maintenance
19
Quality
15
Community
9
Popularity
5
Documentation
15
const-anonymous-functions
Maintenance
4
Quality
21
Community
4
Popularity
4
Documentation
13
Technical Details
| const_fn_assert | assert-struct | const-anonymous-functions | |
|---|---|---|---|
| Version | 0.1.3+deprecated | 0.4.2 | 1.1.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT | MIT | MIT |
| Dependencies | 0 | 6 | 0 |
| Crate Size | 3KB | 30KB | 2KB |
| Features | 0 | 2 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2018 | 2024 | 2021 |
| MSRV | — | 1.85 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •assert-struct leads with a health score of 63/100, but none of the options score above 80.
- •const_fn_assert has the most downloads (464.6K), suggesting wider adoption.
- •⚠ const_fn_assert, const-anonymous-functions have not been updated in over a year.
- •const_fn_assert, assert-struct are pre-1.0 — API may change.