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
57
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 | 57 | 48 |
| Total Downloads | 2.6K | 3.3M | 56.1K |
| 30d Downloads | 0 | 134.7K | 4.3K |
| Dependents | 0 | 1.1K | 7 |
| Releases | 2 | 38 | 13 |
| Last Updated | 1050d ago | 129d ago | 652d ago |
| Age | 2y 10m | 5y 12m | 5y 6m |
Health Breakdown
repr_c_wrapper
Maintenance
4
Quality
16
Community
6
Popularity
4
Documentation
13
safer-ffi
Maintenance
13
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 57/100, but none of the options score above 80.
- •safer-ffi is depended on by 1.1K crates — strongest ecosystem trust.
- •⚠ repr_c_wrapper, stackbox have not been updated in over a year.