tempfile by Stebalien
Temporary file library for rust
About tempfile
From the project's README at github.com/Stebalien/tempfile. Lightly cleaned for readability; for the full source see the upstream repo.
[](https://crates.io/crates/tempfile) [](https://github.com/Stebalien/tempfile/actions/workflows/ci.yml?query=branch%3Amaster)
A secure, cross-platform, temporary file library for Rust. In addition to creating temporary files, this library also allows users to securely open multiple independent references to the same temporary file (useful for consumer/producer patterns and surprisingly difficult to implement securely).
This crate supports all major operating systems: Linux Android MacOS Windows FreeBSD (likely other BSDs but we don't have CI for them) RedoxOS Wasm (build and link only, Wasm doesn't have a filesystem) WASI P1 & P2.
However: Android, RedoxOS, Wasm, and WASI targets all require the latest stable rust compiler. WASI P1/P2 does not define a default temporary directory. You'll need to explicitly call with a valid directory or temporary file creation will panic on this platform. WASI P1/P2 does not have file permissions. You may need to override the temporary directory in Android as well to point at your application's per-app cache directory.
Health score breakdown
6-dimension composite. See methodology for formula and weights.
Adoption signals
Real-world usage data, pulled from each registry. The bigger the numbers, the more battle-tested the project.
| Signal | Value | Source |
|---|---|---|
| GitHub stars | 1.4k | github.com/Stebalien/tempfile |
| GitHub forks | 145 | github.com/Stebalien/tempfile |
| CRATES downloads (last month) | 112063k | tempfile |
Release & maintenance
Is this project actively maintained, or about to die? Check the recency of last commit and last release.
| Project age | 11.1 years | since Apr 2015 |
| Last commit | 8 days ago | Apr 29, 2026 |
Self-hosting cost across providers
Detected requirements: 4GB RAM, 40GB disk minimum. Cheapest plan per provider that meets the requirement.
| Provider | Plan | Specs | Monthly | |
|---|---|---|---|---|
| hetzner | CAX11 | 2c · 4GB · 40GB | $4.13 USD | Deploy → |
| vultr | VC2 | 1c · 1GB · 25GB | $5 USD | Deploy → |
| linode | Nanode 1GB | 1c · 1GB · 25GB | $5.12 USD | Deploy → |
| digitalocean | Basic Regular 1GB | 1c · 1GB · 25GB | $6 USD | Deploy → |
What people say on Hacker News
- Show HN: Groupr – Rust CLI that sorts files into subfolders by extension
- Show HN: Connect a Discord channel with Claude Code agents running in tmux
- snap-confine + systemd-tmpfiles = root (CVE-2026-3888)
- Snap-confine and systemd-tmpfiles = root (CVE-2026-3888)
- The Plan Is to Make the Internet Worse. Forever [video]
Ready to self-host tempfile?
Spin up a hetzner CAX11 (4GB RAM, 40GB disk) for $4.13/mo and follow the project's official install docs.
Data last refreshed May 7, 2026.
Similar open-source projects
Projects in our directory that replace the same SaaS or share topics with tempfile.