Decision Workspace
const-anonymous-functions vs const_fn_assert vs optargs
Side-by-side comparison of Rust crates
46
const-anonymous-functions
growingv1.1.0
Simple macro to create const anonymous functions
49
const_fn_assert
growingv0.1.3+deprecated
Assertions for const functions.
34
optargs
growingv0.1.2
Easily create macros for functions with optional arguments
Core Metrics
| const-anonymous-functions | const_fn_assert | optargs | |
|---|---|---|---|
| Health Score | 46 | 49 | 34 |
| Total Downloads | 3.6K | 464.6K | 34.2K |
| 30d Downloads | 43 | 3.3K | 2.5K |
| Dependents | 2 | 49 | 1 |
| Releases | 2 | 4 | 3 |
| Last Updated | 963d ago | 1054d ago | 1797d ago |
| Age | 2y 7m | 6y 4m | 4y 12m |
Health Breakdown
const-anonymous-functions
Maintenance
4
Quality
21
Community
4
Popularity
4
Documentation
13
const_fn_assert
Maintenance
3
Quality
16
Community
11
Popularity
7
Documentation
12
optargs
Maintenance
4
Quality
15
Community
4
Popularity
5
Documentation
6
Technical Details
| const-anonymous-functions | const_fn_assert | optargs | |
|---|---|---|---|
| Version | 1.1.0 | 0.1.3+deprecated | 0.1.2 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | MIT | MIT | MIT OR Apache-2.0 |
| Dependencies | 0 | 0 | 1 |
| Crate Size | 2KB | 3KB | 5KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2018 | 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.
- •⚠ const-anonymous-functions, const_fn_assert, optargs have not been updated in over a year.
- •const_fn_assert, optargs are pre-1.0 — API may change.