Decision Workspace
assert-not vs assert-struct vs const_fn_assert
Side-by-side comparison of Rust crates
43
assert-not
growingv0.1.0
A simple, no_std compatible Rust macro that works like the inverse of assert! - passes when condition is false
63
assert-struct
growingv0.5.0
A procedural macro for ergonomic structural assertions in tests
49
const_fn_assert
growingv0.1.3+deprecated
Assertions for const functions.
Core Metrics
| assert-not | assert-struct | const_fn_assert | |
|---|---|---|---|
| Health Score | 43 | 63 | 49 |
| Total Downloads | 1.7K | 32.4K | 497.1K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 51 | 49 |
| Releases | 1 | 8 | 4 |
| Last Updated | 441d ago | 56d ago | 1250d ago |
| Age | 1y 2m | 1y 1m | 6y 11m |
Health Breakdown
assert-not
Maintenance
2
Quality
16
Community
6
Popularity
4
Documentation
15
assert-struct
Maintenance
16
Quality
16
Community
11
Popularity
5
Documentation
15
const_fn_assert
Maintenance
3
Quality
16
Community
11
Popularity
7
Documentation
12
Technical Details
| assert-not | assert-struct | const_fn_assert | |
|---|---|---|---|
| Version | 0.1.0 | 0.5.0 | 0.1.3+deprecated |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MIT | MIT |
| Dependencies | 0 | 6 | 0 |
| Crate Size | 4KB | 28KB | 3KB |
| Features | 0 | 2 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2024 | 2018 |
| MSRV | 1.56.0 | 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 (497.1K), suggesting wider adoption.
- •⚠ assert-not, const_fn_assert have not been updated in over a year.