You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rasul 73f75bd7cb
4 years ago
data init 5 years ago
src expand test to check html after post 5 years ago
static html page for errors 5 years ago
templates html page for errors 5 years ago
.editorconfig add yaml files 5 years ago
.gitignore ignore config.toml 5 years ago
.gitlab-ci.yml Update .gitlab-ci.yml - was missing a space 5 years ago
Cargo.lock some more tests, also move tests to their own module 5 years ago
Cargo.toml v0.7.2 4 years ago
LICENSE Add LICENSE 5 years ago badges 5 years ago
config.toml.default default config 5 years ago
paste.openrc chdir to working directory 4 years ago
paste.service systemd service 5 years ago
readme.html readme for the github pages site 5 years ago
rustfmt.toml init 5 years ago

Pipeline Status Coverage MIT License


A pastebin like web application. Useful for pasting text into a form to store. Syntax highlighting is selected via a dropdown menu and is applied server side. No javascript to load, just some CSS.

Curl may be used to submit text, but there is no option at this time to specify the language (for syntax highlighting) via curl:

cargo check | curl -T-
curl -T- < src/

The git repo is located at There is an instance running at

pastebucket is written in rust and uses the gotham web application framework.


First, clone the repo:

git clone

Enter the directory and create your configuration:

cd pasteb
cp config.toml.default config.toml
$EDITOR config.toml

Build pastebucket

cargo build --release


Run pastebucket

cargo run --release

It is best to run a web server such as Apache or nginx and reverse proxy connections to pastebucket.

You may run the executable directly (without cargo), it is located at target/release/pastebucket.

pastebucket should be run from the directory containing config.toml. At this time there is no option specify where to load the config from via the command line.

A sample systemd service file is included in the git repo.