Decision Workspace
opt_args vs optargs vs struct-patch-derive
Side-by-side comparison of Rust crates
40
opt_args
growingv2.0.0
Create macros for functions and structs with default values
35
optargs
growingv0.1.2
Easily create macros for functions with optional arguments
65
struct-patch-derive
growingv0.12.7
A library that helps you implement partial updates for your structs.
Core Metrics
| opt_args | optargs | struct-patch-derive | |
|---|---|---|---|
| Health Score | 40 | 35 | 65 |
| Total Downloads | 5.5K | 41.3K | 826.0K |
| 30d Downloads | 0 | 988 | 45.1K |
| Dependents | 0 | 1 | 47 |
| Releases | 4 | 3 | 47 |
| Last Updated | 850d ago | 1905d ago | 1d ago |
| Age | 4y 3m | 5y 3m | 3y 5m |
Health Breakdown
opt_args
Maintenance
4
Quality
19
Community
3
Popularity
4
Documentation
10
optargs
Maintenance
4
Quality
15
Community
4
Popularity
6
Documentation
6
struct-patch-derive
Maintenance
19
Quality
17
Community
10
Popularity
7
Documentation
12
Technical Details
| opt_args | optargs | struct-patch-derive | |
|---|---|---|---|
| Version | 2.0.0 | 0.1.2 | 0.12.7 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | Apache-2.0 | MIT OR Apache-2.0 | MIT |
| Dependencies | 6 | 1 | 5 |
| Crate Size | 9KB | 5KB | 19KB |
| Features | 0 | 0 | 6 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2018 | 2021 |
| MSRV | — | — | 1.61.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •struct-patch-derive leads with a health score of 65/100, but none of the options score above 80.
- •⚠ opt_args, optargs have not been updated in over a year.
- •optargs, struct-patch-derive are pre-1.0 — API may change.