Decision Workspace
sanctum-macros vs hopper-derive vs hopper-macros-proc
Side-by-side comparison of Rust crates
45
sanctum-macros
growingv1.4.0
Sanctum Solana Macros
53
hopper-derive
experimentalv0.5.0
Proc macro layer for Hopper. Generates account layouts, typed context accessors, instruction dispatchers, schema metadata, and CPI builders.
41
hopper-macros-proc
experimentalv0.1.0
Optional proc macro layer for Hopper. Generates SegmentMap impls, typed context accessors, and instruction dispatchers from annotated structs. Zero runtime overhead: all code generates to the same pointer arithmetic as hand-written Pinocchio. Not required. Hopper's macro_rules! macros cover every use case without proc macros.
Core Metrics
| sanctum-macros | hopper-derive | hopper-macros-proc | |
|---|---|---|---|
| Health Score | 45 | 53 | 41 |
| Total Downloads | 25.5K | 167 | 85 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 7 | 1 |
| Releases | 5 | 7 | 1 |
| Last Updated | 689d ago | 9d ago | 152d ago |
| Age | 2y 10m | 4m | 5m |
Health Breakdown
sanctum-macros
Maintenance
4
Quality
19
Community
7
Popularity
5
Documentation
10
hopper-derive
Maintenance
18
Quality
11
Community
8
Popularity
3
Documentation
13
hopper-macros-proc
Maintenance
6
Quality
13
Community
7
Popularity
2
Documentation
13
Technical Details
| sanctum-macros | hopper-derive | hopper-macros-proc | |
|---|---|---|---|
| Version | 1.4.0 | 0.5.0 | 0.1.0 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | Apache-2.0 | Apache-2.0 |
| Dependencies | 5 | 8 | 5 |
| Crate Size | 5KB | 227KB | 87KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | — | — | — |
| Owners | 2 | 1 | 1 |
Links
Quick Verdict
- •hopper-derive leads with a health score of 53/100, but none of the options score above 80.
- •sanctum-macros has the most downloads (25.5K), suggesting wider adoption.
- •⚠ sanctum-macros has not been updated in over a year.
- •hopper-derive, hopper-macros-proc are pre-1.0 — API may change.