Decision Workspace
float_approx_math vs const-gen vs const-gen-derive
Side-by-side comparison of Rust crates
47
float_approx_math
growingv0.1.9
A math library for compile-time floating-point approximations (sqrt, sin, cos, etc...)
68
const-gen
stablev1.6.9
A crate for generating (relatively) complex compile-time constants in rust.
63
const-gen-derive
stablev1.1.7
A derive macro for the const-gen crate.
Core Metrics
| float_approx_math | const-gen | const-gen-derive | |
|---|---|---|---|
| Health Score | 47 | 68 | 63 |
| Total Downloads | 12.8K | 321.8K | 284.6K |
| 30d Downloads | 15 | 25.5K | 25.3K |
| Dependents | 22 | 34 | 45 |
| Releases | 10 | 45 | 16 |
| Last Updated | 811d ago | 37d ago | 37d ago |
| Age | 2y 7m | 4y 11m | 4y 11m |
Health Breakdown
float_approx_math
Maintenance
6
Quality
16
Community
10
Popularity
5
Documentation
10
const-gen
Maintenance
17
Quality
22
Community
10
Popularity
7
Documentation
12
const-gen-derive
Maintenance
16
Quality
17
Community
11
Popularity
7
Documentation
12
Technical Details
| float_approx_math | const-gen | const-gen-derive | |
|---|---|---|---|
| Version | 0.1.9 | 1.6.9 | 1.1.7 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MIT | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 7 | 2 | 3 |
| Crate Size | 7KB | 11KB | 4KB |
| Features | 4 | 5 | 0 |
| Yanked % | 0.0% | 2.2% | 6.3% |
| Edition | 2021 | 2018 | 2018 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •const-gen leads with a health score of 68/100, but none of the options score above 80.
- •⚠ float_approx_math has not been updated in over a year.
- •float_approx_math is pre-1.0 — API may change.