Decision Workspace
temp-dir vs tmpdir vs tmp-path
Side-by-side comparison of Rust crates
64
temp-dir
growingv0.2.0
Simple temporary directory with cleanup
50
tmpdir
growingv1.0.0
Useful to create temp directories and copy their contents on completion of some action. Tmp dirs will be created using [`env::temp_dir`] with some random characters prefixed to prevent a name clash
50
tmp-path
growingv0.1.2
Test helper to create a temporary directory
Core Metrics
| temp-dir | tmpdir | tmp-path | |
|---|---|---|---|
| Health Score | 64 | 50 | 50 |
| Total Downloads | 5.9M | 62.8K | 20.3K |
| 30d Downloads | 338.3K | 4.5K | 411 |
| Dependents | 2.2K | 79 | 62 |
| Releases | 18 | 1 | 3 |
| Last Updated | 46d ago | 1127d ago | 317d ago |
| Age | 5y | 3y 1m | 1y 2m |
Health Breakdown
temp-dir
Maintenance
15
Quality
16
Community
15
Popularity
8
Documentation
10
tmpdir
Maintenance
1
Quality
19
Community
11
Popularity
6
Documentation
13
tmp-path
Maintenance
7
Quality
15
Community
10
Popularity
5
Documentation
13
Technical Details
| temp-dir | tmpdir | tmp-path | |
|---|---|---|---|
| Version | 0.2.0 | 1.0.0 | 0.1.2 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | Apache-2.0 | MIT | MIT |
| Dependencies | 0 | 5 | 3 |
| Crate Size | 6KB | 5KB | 5KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •temp-dir leads with a health score of 64/100, but none of the options score above 80.
- •temp-dir is depended on by 2.2K crates — strongest ecosystem trust.
- •⚠ tmpdir has not been updated in over a year.
- •temp-dir, tmp-path are pre-1.0 — API may change.