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
45
hopper-derive
experimentalv0.2.1
Proc macro layer for Hopper. Generates account layouts, typed context accessors, instruction dispatchers, schema metadata, and CPI builders.
44
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 | 45 | 44 |
| Total Downloads | 20.0K | 53 | 42 |
| 30d Downloads | 989 | 0 | 0 |
| Dependents | 0 | 2 | 1 |
| Releases | 5 | 2 | 1 |
| Last Updated | 600d ago | 55d ago | 64d ago |
| Age | 2y 7m | 1m | 2m |
Health Breakdown
sanctum-macros
Maintenance
4
Quality
19
Community
7
Popularity
5
Documentation
10
hopper-derive
Maintenance
11
Quality
12
Community
7
Popularity
2
Documentation
13
hopper-macros-proc
Maintenance
9
Quality
13
Community
7
Popularity
2
Documentation
13
Technical Details
| sanctum-macros | hopper-derive | hopper-macros-proc | |
|---|---|---|---|
| Version | 1.4.0 | 0.2.1 | 0.1.0 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | Apache-2.0 | Apache-2.0 |
| Dependencies | 5 | 5 | 5 |
| Crate Size | 5KB | 101KB | 87KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | — | — | — |
| Owners | 2 | 1 | 1 |
Links
Quick Verdict
- •sanctum-macros leads with a health score of 45/100, but none of the options score above 80.
- •⚠ sanctum-macros has not been updated in over a year.
- •hopper-derive, hopper-macros-proc are pre-1.0 — API may change.