Crate

tempfile

Temporary file and directory creation for tests and tools.

What it is

tempfile creates temporary files and directories that are automatically deleted when they go out of scope. It provides unnamed file descriptors, named temporary files with accessible paths, and temporary directories — all with RAII cleanup.

Why it is commonly used

Ubiquitous in test suites. Any test that writes to disk uses tempfile to avoid filesystem pollution and to ensure cleanup on test exit, even on panics or early returns.

1.6k
Repositories
92%
Actively maintained
1.4k
Updated ≤ 30 days
5.0M
Total stars
1.3k
Owners

Counted from the Cargo.toml manifests of the 1.6k indexed repositories that declare tempfile as a dependency — not download counts. Dependency data last verified 2026-08-13.

Browse 1580 repositories using tempfile in Repos →
Often used with

Crates that show up unusually often in tempfile projects. The most distinctive pairings rank first — crates these projects use far more than the average indexed Rust project does, not just crates that are popular everywhere. Each percentage is the share of tempfile projects that also use it.

Used by these organizations
50 of 1.6k repositories · ranked by stars · 1.4k pushed in the last 30 days
rtk76kactive

CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies

⑂ 4.8k2.0k
hyperswitch43kactive

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

servo38kactive

Servo aims to empower developers with a lightweight, high-performance alternative for embedding web technologies in applications.

⑂ 3.7k3.1k
qdrant34kactive

Qdrant - High-performance, massive-scale Vector Database and Vector Search Engine for the next generation of AI. Also available in the cloud https://cloud.qdrant.io/

rustfs31kactive

🚀2.3x faster than MinIO for 4KB object payloads. RustFS is an open-source, S3-compatible high-performance object storage system supporting migration and coexistence with other S3-compatible platforms such as MinIO and Ceph.

cli30kactive

Google Workspace CLI — one command-line tool for Drive, Gmail, Calendar, Sheets, Docs, Chat, Admin, and more. Dynamically built from Google Discovery Service. Includes AI agent skills.

meetily29kmaintenance

Privacy first, AI meeting assistant with 4x faster Parakeet/Whisper live transcription, speaker diarization, and Ollama summarization built on Rust. 100% local processing. no cloud required. Meetily (Meetly Ai - https://meetily.ai) is the #1 Self-hosted, Open-source Ai meeting note taker for macOS & Windows.

← Browse all repos