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.

842
Repositories
5.6M
Total stars
1.3k
Active
1.1k
Owners
Browse 1377 repositories using tempfile in Repos →
Often used with
Used by these organizations
50 of 1.4k repositories · ranked by stars
claw-code193kactive

An agent-managed museum exhibit, built in Rust with Gajae-Code / LazyCodex — developed and maintained with no human intervention.

cc-switch95kactive

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io

zed85kactive

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

RuView72kactive

π RuView turns commodity WiFi signals into real-time spatial intelligence, vital sign monitoring, and presence detection — all without a single pixel of video.

⑂ 9.6k193
openinterpreter64kactive

A lightweight coding agent for open models like Deepseek, Kimi, and Qwen

⑂ 5.6k270
rustlings63kactive

:crab: Small exercises to get you used to reading and writing Rust code!

⑂ 11k38
rtk60kactive

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

⑂ 3.7k1.1k
starship58kactive

☄🌌️ The minimal, blazing-fast, and infinitely customizable prompt for any shell!

⑂ 2.5k1.0k
typst54kactive

A markup-based typesetting system that is powerful and easy to learn.

⑂ 1.6k1.2k
goose48kactive

an open source, extensible AI agent that goes beyond code suggestions - install, execute, edit, and test with any LLM

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

comprehensive-rust33kactive

This is the Rust course used by the Android team at Google. It provides you the material to quickly teach Rust.

tokio32kactive

A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...

⑂ 3.1k433
qdrant32kactive

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/

zeroclaw32kactive

Fast, small, and fully autonomous AI personal assistant infrastructure, any OS, any platform — deploy anywhere, swap anything 🦀

jj30kactive

A Git-compatible VCS that is both simple and powerful

⑂ 1.1k1.1k
← Browse all repos