Decision Workspace
ffi-opaque vs duckfn-macro vs mercury-derive
Side-by-side comparison of Rust crates
51
ffi-opaque
growingv2.0.1
A simple macro to create correct opaque pointers.
58
duckfn-macro
experimentalv0.0.19
Procedural macros for duckfn: generate DuckDB scalar, aggregate and table functions, SQL macros and STRUCT types from plain Rust code.
56
mercury-derive
experimentalv0.5.3
Procedural macro for marking Rust types for PureScript code generation
Core Metrics
| ffi-opaque | duckfn-macro | mercury-derive | |
|---|---|---|---|
| Health Score | 51 | 58 | 56 |
| Total Downloads | 2.4M | 661 | 44.9K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 41 | 19 | 0 |
| Releases | 4 | 19 | 7 |
| Last Updated | 2018d ago | 4d ago | 38d ago |
| Age | 5y 10m | 28d | 8m |
Health Breakdown
ffi-opaque
Maintenance
3
Quality
20
Community
11
Popularity
8
Documentation
9
duckfn-macro
Maintenance
17
Quality
13
Community
10
Popularity
3
Documentation
15
mercury-derive
Maintenance
18
Quality
14
Community
6
Popularity
6
Documentation
12
Technical Details
| ffi-opaque | duckfn-macro | mercury-derive | |
|---|---|---|---|
| Version | 2.0.1 | 0.0.19 | 0.5.3 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | MIT | MIT | MIT OR Apache-2.0 |
| Dependencies | 1 | 4 | 3 |
| Crate Size | 3KB | 70KB | 7KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2018 | 2024 | 2024 |
| MSRV | — | 1.86 | 1.85 |
| Owners | 2 | 1 | 1 |
Links
Quick Verdict
- •duckfn-macro leads with a health score of 58/100, but none of the options score above 80.
- •ffi-opaque has the most downloads (2.4M), suggesting wider adoption.
- •⚠ ffi-opaque has not been updated in over a year.
- •duckfn-macro, mercury-derive are pre-1.0 — API may change.