Decision Workspace
pakr-assert-size vs ffi_struct_derive vs ffi_struct_trait
Side-by-side comparison of Rust crates
39
pakr-assert-size
growingv1.0.1
Compile-time checks of the size of structures
47
ffi_struct_derive
experimentalv0.3.1
This crate is a supporting library for the `ffi_struct` crate. It provides the proc macro `FFIStruct` which is used in conjunction with the `ffi_struct_trait` crate to provide an easy way to make a struct iterable in Rust and better than `struct_iterable` since you could have more detailed manipulation to the paddings.
43
ffi_struct_trait
experimentalv0.3.0
The trait bounds for `ffi_struct`
Core Metrics
| pakr-assert-size | ffi_struct_derive | ffi_struct_trait | |
|---|---|---|---|
| Health Score | 39 | 47 | 43 |
| Total Downloads | 2.8K | 817 | 571 |
| 30d Downloads | 4 | 42 | 40 |
| Dependents | 0 | 3 | 3 |
| Releases | 2 | 5 | 3 |
| Last Updated | 1573d ago | 150d ago | 150d ago |
| Age | 4y 3m | 5m | 5m |
Health Breakdown
pakr-assert-size
Maintenance
3
Quality
14
Community
6
Popularity
4
Documentation
12
ffi_struct_derive
Maintenance
17
Quality
14
Community
5
Popularity
3
Documentation
8
ffi_struct_trait
Maintenance
12
Quality
15
Community
5
Popularity
3
Documentation
8
Technical Details
| pakr-assert-size | ffi_struct_derive | ffi_struct_trait | |
|---|---|---|---|
| Version | 1.0.1 | 0.3.1 | 0.3.0 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | BSD-2-Clause | non-standard | non-standard |
| Dependencies | 2 | 3 | 0 |
| Crate Size | 3KB | 15KB | 11KB |
| Features | 0 | 0 | 0 |
| Yanked % | 50.0% | 0.0% | 0.0% |
| Edition | 2021 | 2024 | 2024 |
| MSRV | 1.57.0 | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •ffi_struct_derive leads with a health score of 47/100, but none of the options score above 80.
- •pakr-assert-size has the most downloads (2.8K), suggesting wider adoption.
- •⚠ pakr-assert-size has not been updated in over a year.
- •ffi_struct_derive, ffi_struct_trait are pre-1.0 — API may change.