Skip to content
Evergreen Evergreen
Documentation

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

Migration

Constraints

  • Keep temporary directories cleaned up on drop, as before.

Steps

  1. Replace tempdir with tempfile. Replace the tempdir dependency with tempfile and change TempDir::new(prefix) calls to tempfile::tempdir() or tempfile::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.

Same ecosystem

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