Decision Workspace
assert_has_field vs assert-struct vs assertables
Side-by-side comparison of Rust crates
51
assert_has_field
experimentalv0.1.3
A Rust macro for checking if a struct has a specific field.
63
assert-struct
experimentalv0.4.2
A procedural macro for ergonomic structural assertions in tests
60
assertables
stablev9.8.6
Assertables: assert macros for better testing, debugging, quality assurance, and runtime reliability.
Core Metrics
| assert_has_field | assert-struct | assertables | |
|---|---|---|---|
| Health Score | 51 | 63 | 60 |
| Total Downloads | 3.0K | 7.3K | 929.9K |
| 30d Downloads | 45 | 2.3K | 88.5K |
| Dependents | 0 | 10 | 417 |
| Releases | 4 | 7 | 73 |
| Last Updated | 362d ago | 4d ago | 36d ago |
| Age | 12m | 7m | 4y 11m |
Health Breakdown
assert_has_field
Maintenance
13
Quality
15
Community
6
Popularity
4
Documentation
13
assert-struct
Maintenance
19
Quality
15
Community
9
Popularity
5
Documentation
15
assertables
Maintenance
17
Quality
13
Community
13
Popularity
7
Documentation
10
Technical Details
| assert_has_field | assert-struct | assertables | |
|---|---|---|---|
| Version | 0.1.3 | 0.4.2 | 9.8.6 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT | MIT OR Apache-2.0 OR BSD-3-Clause OR GPL-2.0-only OR GPL-3.0-only |
| Dependencies | 0 | 6 | 9 |
| Crate Size | 4KB | 30KB | 546KB |
| Features | 0 | 2 | 0 |
| Yanked % | 0.0% | 0.0% | 9.6% |
| Edition | 2024 | 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.
- •assertables has the most downloads (929.9K), suggesting wider adoption.
- •assertables is depended on by 417 crates — strongest ecosystem trust.
- •assert_has_field, assert-struct are pre-1.0 — API may change.