Decision Workspace
as-slice vs random-pick vs ps-util
Side-by-side comparison of Rust crates
44
as-slice
growingv0.2.1
`AsSlice` and `AsMutSlice` traits
67
random-pick
stablev1.2.18
Pick an element from a slice randomly by given weights.
64
ps-util
growingv0.1.0-9
This crate aims to provide generally helpful utility functions and traits.
Core Metrics
| as-slice | random-pick | ps-util | |
|---|---|---|---|
| Health Score | 44 | 67 | 64 |
| Total Downloads | 30.0M | 1.8M | 4.8K |
| 30d Downloads | 2.8M | 36.6K | 0 |
| Dependents | 178 | 58 | 41 |
| Releases | 8 | 24 | 9 |
| Last Updated | 1936d ago | 5d ago | 7d ago |
| Age | 7y 8m | 7y 10m | 1y 11m |
Health Breakdown
as-slice
Maintenance
5
Quality
10
Community
13
Popularity
8
Documentation
8
random-pick
Maintenance
18
Quality
20
Community
10
Popularity
7
Documentation
12
ps-util
Maintenance
19
Quality
16
Community
10
Popularity
4
Documentation
15
Technical Details
| as-slice | random-pick | ps-util | |
|---|---|---|---|
| Version | 0.2.1 | 1.2.18 | 0.1.0-9 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT OR Apache-2.0 | MIT | GPL-3.0-or-later |
| Dependencies | 1 | 1 | 0 |
| Crate Size | 7KB | 5KB | 12KB |
| Features | 0 | 0 | 0 |
| Yanked % | 25.0% | 0.0% | 0.0% |
| Edition | — | 2021 | 2021 |
| MSRV | — | 1.63 | 1.93 |
| Owners | 2 | 1 | 1 |
Links
Quick Verdict
- •random-pick leads with a health score of 67/100, but none of the options score above 80.
- •as-slice has the most downloads (30.0M), suggesting wider adoption.
- •as-slice is depended on by 178 crates — strongest ecosystem trust.
- •⚠ as-slice has not been updated in over a year.
- •as-slice, ps-util are pre-1.0 — API may change.