Decision Workspace
assert-not vs assert-struct vs const_fn_assert
Side-by-side comparison of Rust crates
43
assert-not
experimentalv0.1.0
A simple, no_std compatible Rust macro that works like the inverse of assert! - passes when condition is false
63
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 | 43 | 63 | 49 |
| Total Downloads | 516 | 7.3K | 464.6K |
| 30d Downloads | 4 | 2.3K | 3.3K |
| Dependents | 0 | 10 | 49 |
| Releases | 1 | 7 | 4 |
| Last Updated | 245d ago | 4d ago | 1054d ago |
| Age | 8m | 7m | 6y 4m |
Health Breakdown
assert-not
Maintenance
4
Quality
15
Community
6
Popularity
3
Documentation
15
assert-struct
Maintenance
19
Quality
15
Community
9
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 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 has not been updated in over a year.