Decision Workspace
hmacro vs xmacro_lib vs code-product-lib
Side-by-side comparison of Rust crates
45
hmacro
growingv2.2.2
A simple macro preprocessor
54
xmacro_lib
growingv0.5.1
macro engine for producing multiple expansions
50
code-product-lib
growingv0.4.1
macro producing multiple expansions
Core Metrics
| hmacro | xmacro_lib | code-product-lib | |
|---|---|---|---|
| Health Score | 45 | 54 | 50 |
| Total Downloads | 774 | 5.7K | 86.1K |
| 30d Downloads | 29 | 42 | 9.1K |
| Dependents | 0 | 6 | 11 |
| Releases | 2 | 8 | 5 |
| Last Updated | 224d ago | 323d ago | 451d ago |
| Age | 7m | 1y 2m | 2y 3m |
Health Breakdown
hmacro
Maintenance
8
Quality
19
Community
5
Popularity
3
Documentation
10
xmacro_lib
Maintenance
12
Quality
15
Community
8
Popularity
4
Documentation
15
code-product-lib
Maintenance
5
Quality
17
Community
9
Popularity
6
Documentation
13
Technical Details
| hmacro | xmacro_lib | code-product-lib | |
|---|---|---|---|
| Version | 2.2.2 | 0.5.1 | 0.4.1 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | GPL-3.0-or-later | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 0 | 1 | 2 |
| Crate Size | 20KB | 13KB | 12KB |
| Features | 0 | 0 | 2 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2021 | 2021 |
| MSRV | — | 1.74.1 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •xmacro_lib leads with a health score of 54/100, but none of the options score above 80.
- •code-product-lib has the most downloads (86.1K), suggesting wider adoption.
- •⚠ code-product-lib has not been updated in over a year.
- •xmacro_lib, code-product-lib are pre-1.0 — API may change.