tempfile by Stebalien

Temporary file library for rust

libraryrusttempfilefilesystem-librarytesting
Verdict 59/100 health $4.13/mo cheapest, hetzner 2/5 setup difficulty

Self-host tempfile on hetzner CAX11 for $4.13/mo.

Health score
59 /100
6-dim composite
Self-hosts from
$4.13 /mo
hetzner · CAX11
Difficulty
2 /5
Docker + read README
GitHub stars
1.4k
145 forks

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.

activity
75
maturity
30
community
93
security
70
sustainability
53
adoption
28

Adoption signals

Real-world usage data, pulled from each registry. The bigger the numbers, the more battle-tested the project.

SignalValueSource
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 age11.1 yearssince Apr 2015
Last commit8 days agoApr 29, 2026

Self-hosting cost across providers

Detected requirements: 4GB RAM, 40GB disk minimum. Cheapest plan per provider that meets the requirement.

ProviderPlanSpecsMonthly
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

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.

Frequently asked questions

Last verified . Data refreshes every 30 minutes.