Decision Workspace
mod-tempdir vs test-temp-dir vs tempfile
Side-by-side comparison of Rust crates
53
mod-tempdir
experimentalv1.0.1
Temporary directory and file management for Rust. Auto-cleanup on Drop, collision-resistant naming, orphan cleanup, cross-platform paths. Zero runtime deps by default; opt-in mod-rand feature for uniformly distributed naming. tempfile replacement at MSRV 1.75.
70
test-temp-dir
growingv0.8.0
Temporary directories for use in tests
67
tempfile
stablev3.27.0
A library for managing temporary files and directories.
Core Metrics
| mod-tempdir | test-temp-dir | tempfile | |
|---|---|---|---|
| Health Score | 53 | 70 | 67 |
| Total Downloads | 87 | 57.8K | 673.2M |
| 30d Downloads | 0 | 5.9K | 32.6M |
| Dependents | 0 | 176 | 335.3K |
| Releases | 5 | 17 | 66 |
| Last Updated | 56d ago | 13d ago | 125d ago |
| Age | 2m | 2y 5m | 11y 3m |
Health Breakdown
mod-tempdir
Maintenance
11
Quality
19
Community
6
Popularity
2
Documentation
15
test-temp-dir
Maintenance
21
Quality
16
Community
15
Popularity
6
Documentation
12
tempfile
Maintenance
12
Quality
20
Community
12
Popularity
8
Documentation
15
Technical Details
| mod-tempdir | test-temp-dir | tempfile | |
|---|---|---|---|
| Version | 1.0.1 | 0.8.0 | 3.27.0 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✓ Yes |
| License | Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 1 | 4 | 6 |
| Crate Size | 33KB | 11KB | 45KB |
| Features | 2 | 2 | 2 |
| Yanked % | 0.0% | 0.0% | 4.5% |
| Edition | 2021 | 2024 | 2021 |
| MSRV | 1.75 | 1.91 | 1.63 |
| Owners | 1 | 4 | 1 |
Links
Quick Verdict
- •test-temp-dir leads with a health score of 70/100, but none of the options score above 80.
- •tempfile has the most downloads (673.2M), suggesting wider adoption.
- •tempfile is depended on by 335.3K crates — strongest ecosystem trust.
- •test-temp-dir is pre-1.0 — API may change.