Decision Workspace
optargs vs opt_args vs const_fn_assert
Side-by-side comparison of Rust crates
34
optargs
growingv0.1.2
Easily create macros for functions with optional arguments
40
opt_args
growingv2.0.0
Create macros for functions and structs with default values
49
const_fn_assert
growingv0.1.3+deprecated
Assertions for const functions.
Core Metrics
| optargs | opt_args | const_fn_assert | |
|---|---|---|---|
| Health Score | 34 | 40 | 49 |
| Total Downloads | 34.2K | 5.4K | 464.6K |
| 30d Downloads | 2.5K | 29 | 3.3K |
| Dependents | 1 | 0 | 49 |
| Releases | 3 | 4 | 4 |
| Last Updated | 1797d ago | 742d ago | 1054d ago |
| Age | 4y 12m | 4y | 6y 4m |
Health Breakdown
optargs
Maintenance
4
Quality
15
Community
4
Popularity
5
Documentation
6
opt_args
Maintenance
4
Quality
19
Community
3
Popularity
4
Documentation
10
const_fn_assert
Maintenance
3
Quality
16
Community
11
Popularity
7
Documentation
12
Technical Details
| optargs | opt_args | const_fn_assert | |
|---|---|---|---|
| Version | 0.1.2 | 2.0.0 | 0.1.3+deprecated |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT OR Apache-2.0 | Apache-2.0 | MIT |
| Dependencies | 1 | 6 | 0 |
| Crate Size | 5KB | 9KB | 3KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2018 | 2021 | 2018 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •const_fn_assert leads with a health score of 49/100, but none of the options score above 80.
- •⚠ optargs, opt_args, const_fn_assert have not been updated in over a year.
- •optargs, const_fn_assert are pre-1.0 — API may change.