tempdir is no longer maintained
Deprecated. The source gives no day. Replacement: tempfile. Source: RustSec advisory RUSTSEC-2018-0017.
Check a version:
evergreen check pkg:cargo/tempdir
The tempdir crate has been deprecated and its functionality merged into tempfile.
Look up another package or runtime · <form action="../lookup.html" method="get" role="search"> </form>
| Status | Deprecated |
| Severity | medium |
| Ecosystem | rust |
| Component | pkg:cargo/tempdir |
| Affected versions | vers:cargo/* |
| Date from the source | The source gives no day |
| Replacement | tempfile |
| Evidence last seen | 2026-10-17 |
| Reviewed | 2026-10-17 by arminazimi |
| Review due | 2026-12-01 (45 days after the last review) |
| Rule ID | rust.crate.tempdir.unmaintained |
Sources
- RustSec advisory RUSTSEC-2018-0017 (accessed 2026-10-17)
Migration
Constraints
- Keep temporary directories cleaned up on drop, as before.
Steps
- Replace tempdir with tempfile. Replace the tempdir dependency with tempfile and change
TempDir::new(prefix)calls totempfile::tempdir()ortempfile::Builder.
Verification
cargo build --all-targets && cargo test: Build and run the tests that create temporary directories.
Detected by
The rust detector. See Detectors and Compatibility.
Related
Same ecosystem
- ansi_term is no longer maintained
- atty is no longer maintained
- failure is no longer maintained
- Rust 1.98 and older are no longer supported
Data
This page is generated from registry/rust.json, rule rust.crate.tempdir.unmaintained, in the ebb.registry.v2 format (how rules are written). A CLE (ECMA-428) export is not published yet. The same facts are embedded in this page as schema.org structured data.
Last updated