Decision Workspace
tmpdir vs temp-dir vs tmp-path
Side-by-side comparison of Rust crates
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
62
temp-dir
growingv0.2.0
Simple temporary directory with cleanup
49
tmp-path
growingv0.1.2
Test helper to create a temporary directory
Core Metrics
| tmpdir | temp-dir | tmp-path | |
|---|---|---|---|
| Health Score | 50 | 62 | 49 |
| Total Downloads | 73.8K | 6.7M | 20.7K |
| 30d Downloads | 5.1K | 415.4K | 0 |
| Dependents | 79 | 2.3K | 65 |
| Releases | 1 | 18 | 3 |
| Last Updated | 1186d ago | 105d ago | 376d ago |
| Age | 3y 3m | 5y 2m | 1y 4m |
Health Breakdown
tmpdir
Maintenance
1
Quality
19
Community
11
Popularity
6
Documentation
13
temp-dir
Maintenance
13
Quality
16
Community
15
Popularity
8
Documentation
10
tmp-path
Maintenance
6
Quality
15
Community
10
Popularity
5
Documentation
13
Technical Details
| tmpdir | temp-dir | tmp-path | |
|---|---|---|---|
| Version | 1.0.0 | 0.2.0 | 0.1.2 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | MIT | Apache-2.0 | MIT |
| Dependencies | 5 | 0 | 3 |
| Crate Size | 5KB | 6KB | 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 62/100, but none of the options score above 80.
- •temp-dir is depended on by 2.3K crates — strongest ecosystem trust.
- •⚠ tmpdir, tmp-path have not been updated in over a year.
- •temp-dir, tmp-path are pre-1.0 — API may change.