Decision Workspace
temp-dir vs tmpdir vs tmp-path
Side-by-side comparison of Rust crates
58
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.2.1
Test helper to create a temporary directory
Core Metrics
| temp-dir | tmpdir | tmp-path | |
|---|---|---|---|
| Health Score | 58 | 50 | 50 |
| Total Downloads | 9.5M | 96.9K | 22.0K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 2.5K | 79 | 69 |
| Releases | 18 | 1 | 5 |
| Last Updated | 242d ago | 1323d ago | 75d ago |
| Age | 5y 6m | 3y 7m | 1y 9m |
Health Breakdown
temp-dir
Maintenance
9
Quality
16
Community
15
Popularity
8
Documentation
10
tmpdir
Maintenance
1
Quality
19
Community
11
Popularity
6
Documentation
13
tmp-path
Maintenance
12
Quality
10
Community
10
Popularity
5
Documentation
13
Technical Details
| temp-dir | tmpdir | tmp-path | |
|---|---|---|---|
| Version | 0.2.0 | 1.0.0 | 0.2.1 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | Apache-2.0 | MIT | MIT |
| Dependencies | 0 | 5 | 2 |
| Crate Size | 6KB | 5KB | 6KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 20.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •temp-dir leads with a health score of 58/100, but none of the options score above 80.
- •temp-dir is depended on by 2.5K crates — strongest ecosystem trust.
- •⚠ tmpdir has not been updated in over a year.
- •temp-dir, tmp-path are pre-1.0 — API may change.