rustypaste
Rustypaste is a lightweight file upload and pastebin service. Single binary, filesystem storage, supports expiring & one-shot links, MIME guessing, URL shortening, and self-hosted privacy.
Smart Download
Download Download Version
v0.16.1 · 4.2 MB
A minimal, self-hosted pastebin / file upload service in Rust, no database required.
Core Features
- File upload via curl / CLI
- URL shortening & remote URL paste
- Expiring links & one-shot (view once) links
- MIME type guessing with optional force download
- Optional HTTP Basic Authentication
What It Can't Do
- •For production, put behind Nginx for SSL/access control. 2. No database, so disk space might fill with many files. 3. One-shot links rely on server state; CDN/caching may bypass. 4. Authentication is optional – configure auth_token if needed.
Use Cases
- Share files temporarily with auto-expiration
- Run your own pastebin alternative (e.g., replace hastebin)
- Quickly exchange text or small files within a team
- Share sensitive one-time secrets that self-destruct
Detailed Introduction
Rustypaste is a lightweight, self-hosted file upload and pastebin service written in Rust. It stores everything on the filesystem (no database needed) and runs as a single binary. Supports file upload, URL shortening, pasting from remote URLs, expiring links, one-shot links (view once), MIME type guessing, optional authentication, and hot-reloadable configuration. Docker images available. Ideal for personal or small-team use where simplicity, speed, and minimal dependencies are desired.
Troubleshooting & FAQ (1)
vulnerability_fixHow to fix the integer overflow vulnerability (RUSTSEC-2026-0007) in the bytes crate?
Upgrade the bytes crate to version 1.11.1 or later. The vulnerability affects versions 1.2.1 through 1.11.0 in release builds, caused by an unchecked addition in BytesMut::reserve. If upgrading is not immediately possible, configure the Cargo profile to enable overflow checks (e.g., overflow-checks = true) as a temporary mitigation, but note this impacts performance. Track advisory GHSA-434x-w66g-qw3r for updates.
Tags
Getting Started
Install the software
Double-click the downloaded installer and follow the prompts
Download the binary or Docker image
Optionally create a config.toml (defaults work out-of-box)
Start: ./rustypaste or docker run -p 8000:8000 orhunp/rustypaste
- Download the binary or Docker image
- Optionally create a config.toml (defaults work out-of-box)
- Start: ./rustypaste or docker run -p 8000:8000 orhunp/rustypaste
Checksum not available
This project has not published a SHA-256 checksum on its GitHub Release page
SHA256 Checksum
No checksum available
Download directly from GitHub Releases and verify file integrity yourself
All SHA-256 checksums on this platform are extracted from the project's official GitHub Release page, without any modification. You can independently verify them on the GitHub Releases page.
Open Source Transparency
View GitHub SourceUninstall Info
Delete the binary and the upload directory (default `upload/`); if using Docker, run `docker rm` to remove the container.
No Extra Dependencies
Ready to use after download. No additional runtime required.
Having issues? Check the FAQ below
1 FAQ
Similar Projects
copyparty
copyparty turns any device into a file server with resumable uploads/downloads using any web browser. Supports HTTP, WebDAV, SFTP, FTP, TFTP, SMB. Only requires Python (2 or 3).
Paperless-ngx
An open-source document management system that turns physical papers into a searchable, organized digital archive. Self-hosted, OCR-powered, and built to eliminate paper clutter forever.
Nextcloud Server
Nextcloud Server is a free, self-hosted productivity platform that puts you in control of your files, contacts, calendars, and communication.