paste-rs icon indicating copy to clipboard operation
paste-rs copied to clipboard

A paste tool written entirely in Rust, and powered by nickel.rs.

paste-rs Build Status

Database

Setup the database with something like the following:

CREATE USER 'pasteuser'@'localhost' IDENTIFIED BY 'pastepass';

CREATE DATABASE IF NOT EXISTS paste;
USE paste;
CREATE TABLE IF NOT EXISTS paste (
    id           INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
    code         TEXT,
    time_created TIMESTAMP,
    data         BLOB
);

GRANT SELECT, INSERT, UPDATE, DELETE ON paste.paste TO 'pasteuser'@'localhost';
FLUSH PRIVILEGES;

Credits

This project was inspired by pxqz by my friend Uiri.

Additional inspiration (particularly for the nickel.rs routing and layout) from superlogical/rusty.

Dependencies used: