nokaa / cedalion

A simple pastebin clone in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cedalion Build Status

Cedalion is a pastebin clone written in Rust using rotor-http. This branch uses redis as a database.

The webpages use Erato, a minimalistic stylesheet.

Install

Cedalion requires redis to be installed on your system.

Cedalion requires the Rust toolchain. If you don't already have it, I recommend using multirust to get it.

git clone https://github.com/nokaa/cedalion
cd cedalion
cargo build --release
./target/release/cedalion

Building on ARM

mio v0.5.0, a dependency of rotor, does not currently build on ARM. I have patched it so that it will build properly without breaking anything. In order to use the patched version of mio:

git clone https://git.nokaa.moe/nokaa/mio_arm /my/path/mio
cd /my/path/mio
git checkout v0.5.1
cd /path/to/geomys
mkdir .cargo
echo 'paths = ["/my/path/mio",]' > .cargo/config
cargo build --release
sudo ./target/release/cedalion

TODO

  • Add html viewer
    • This will require templates of some form. Maud looked interesting.
  • Add ability to get raw file; this should trigger browser download
    • Should be accessed via html viewer

About

A simple pastebin clone in Rust

License:GNU Affero General Public License v3.0


Languages

Language:Rust 70.7%Language:HTML 29.3%