Decision Workspace
ffi vs hook_macro vs ffi2
Side-by-side comparison of Rust crates
36
ffi
growingv0.1.1
Macro for routing C FFI callbacks to struct methods
45
hook_macro
experimentalv0.1.0
Procedural macro for generating runtime hook system with before/on/after callbacks
29
ffi2
growingv0.1.0
Macro for routing C FFI callbacks to struct methods
Core Metrics
| ffi | hook_macro | ffi2 | |
|---|---|---|---|
| Health Score | 36 | 45 | 29 |
| Total Downloads | 41.3K | 14 | 5.2K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 16 | 0 | 0 |
| Releases | 2 | 1 | 1 |
| Last Updated | 1008d ago | 15d ago | 442d ago |
| Age | 2y 9m | 15d | 1y 2m |
Health Breakdown
ffi
Maintenance
4
Quality
13
Community
6
Popularity
6
Documentation
7
hook_macro
Maintenance
12
Quality
14
Community
6
Popularity
1
Documentation
12
ffi2
Maintenance
2
Quality
13
Community
3
Popularity
4
Documentation
7
Technical Details
| ffi | hook_macro | ffi2 | |
|---|---|---|---|
| Version | 0.1.1 | 0.1.0 | 0.1.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | Apache-2.0 | MIT | Apache-2.0 |
| Dependencies | 8 | 3 | 8 |
| Crate Size | 11KB | 7KB | 12KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | — | 1.70.0 | — |
| Owners | 1 | 1 | 1 |
Quick Verdict
- •hook_macro leads with a health score of 45/100, but none of the options score above 80.
- •ffi has the most downloads (41.3K), suggesting wider adoption.
- •⚠ ffi, ffi2 have not been updated in over a year.