Decision Workspace
repr_c_wrapper vs safer-ffi vs stackbox
Side-by-side comparison of Rust crates
43
repr_c_wrapper
growingv0.1.1
Opaque `#[repr(C)]` wrapper that can be passed by value over FFI
59
safer-ffi
growingv0.1.13
Write safer FFI code in Rust without polluting it with unsafe code
48
stackbox
growingv0.2.2
`&own`ing references in stable Rust - no_std-friendly Box
Core Metrics
| repr_c_wrapper | safer-ffi | stackbox | |
|---|---|---|---|
| Health Score | 43 | 59 | 48 |
| Total Downloads | 2.6K | 3.0M | 47.9K |
| 30d Downloads | 5 | 141.8K | 3.9K |
| Dependents | 0 | 970 | 5 |
| Releases | 2 | 38 | 13 |
| Last Updated | 991d ago | 70d ago | 593d ago |
| Age | 2y 8m | 5y 10m | 5y 4m |
Health Breakdown
repr_c_wrapper
Maintenance
4
Quality
16
Community
6
Popularity
4
Documentation
13
safer-ffi
Maintenance
15
Quality
13
Community
11
Popularity
8
Documentation
12
stackbox
Maintenance
4
Quality
17
Community
8
Popularity
6
Documentation
13
Technical Details
| repr_c_wrapper | safer-ffi | stackbox | |
|---|---|---|---|
| Version | 0.1.1 | 0.1.13 | 0.2.2 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MIT | Zlib OR MIT OR Apache-2.0 |
| Dependencies | 0 | 20 | 3 |
| Crate Size | 3KB | 92KB | 30KB |
| Features | 0 | 19 | 4 |
| Yanked % | 0.0% | 5.3% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | — | 1.72.1 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •safer-ffi leads with a health score of 59/100, but none of the options score above 80.
- •safer-ffi is depended on by 970 crates — strongest ecosystem trust.
- •⚠ repr_c_wrapper, stackbox have not been updated in over a year.