OpenSource-Hub
R

rustypaste

1.2k stars·File Management·SHA-256 checksum verified

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.

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_fix
How 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.

GitHub Issue #517

Tags

pastebinfile-uploadrustself-hostedminimalcli

Getting Started

1

Download installer

Click the button above to download the installer for your system

2

Install the software

Double-click the downloaded installer and follow the prompts

3

Download the binary or Docker image

4

Optionally create a config.toml (defaults work out-of-box)

5

Start: ./rustypaste or docker run -p 8000:8000 orhunp/rustypaste

Install Guide
  1. Download the binary or Docker image
  2. Optionally create a config.toml (defaults work out-of-box)
  3. Start: ./rustypaste or docker run -p 8000:8000 orhunp/rustypaste
File Integrity

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 Source
Environment Guide

Uninstall 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.

Project Info
LicenseMIT
Last Updated2026-06-27 03:30:14
GitHub RepositoryOfficial Website

Having issues? Check the FAQ below

1 FAQ

Similar Projects