Decision Workspace
assert-not vs assert-struct vs const_fn_assert
Side-by-side comparison of Rust crates
42
assert-not
experimentalv0.1.0
A simple, no_std compatible Rust macro that works like the inverse of assert! - passes when condition is false
58
assert-struct
experimentalv0.4.2
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 | 42 | 58 | 49 |
| Total Downloads | 754 | 18.1K | 479.2K |
| 30d Downloads | 0 | 2.5K | 2.0K |
| Dependents | 0 | 41 | 49 |
| Releases | 1 | 7 | 4 |
| Last Updated | 353d ago | 112d ago | 1162d ago |
| Age | 11m | 10m | 6y 8m |
Health Breakdown
assert-not
Maintenance
3
Quality
15
Community
6
Popularity
3
Documentation
15
assert-struct
Maintenance
13
Quality
15
Community
10
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.4.2 | 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 | 30KB | 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 58/100, but none of the options score above 80.
- •const_fn_assert has the most downloads (479.2K), suggesting wider adoption.
- •⚠ const_fn_assert has not been updated in over a year.