A very light-weight pastebin implementation in Rust https://paste.blakerain.com/
Go to file
2024-08-05 16:32:46 +02:00
.gitea/workflows fix: install NodeJS in Docker 2023-10-13 18:25:31 +01:00
media feat: add masked screenshot 2024-08-05 14:57:46 +01:00
migrations feat: add syntax highlighting support 2024-08-05 13:26:11 +01:00
src feat: add syntax highlighting support 2024-08-05 13:26:11 +01:00
static fix: logo color 2024-08-05 14:45:09 +01:00
style fix: remove syntax highlighting background 2024-08-05 14:45:27 +01:00
templates feat: add icons to buttons 2024-08-05 14:51:46 +01:00
.dockerignore fix: allow .git directory in Dockerfile 2023-10-13 23:04:13 +01:00
.gitignore feat: store CSS in static files 2024-08-05 13:30:22 +01:00
build.rs feat: add syntax highlighting support 2024-08-05 13:26:11 +01:00
Cargo.toml chore: bump to v2.0.0 2024-08-05 14:42:01 +01:00
Dockerfile chore: add static files to Dockerfile 2024-08-05 15:03:30 +01:00
LICENSE Initial commit 2023-10-13 16:53:00 +00:00
package.json chore: bump to v2.0.0 2024-08-05 14:42:01 +01:00
postcss.config.js feat: add syntax highlighting support 2024-08-05 13:26:11 +01:00
README.md chore: add more details to README 2024-08-05 16:32:46 +02:00
tailwind.config.js feat: add icons to buttons 2024-08-05 14:51:46 +01:00

cement - a super light-weight pastebin

Screenshot of Cement displaying a paste

Cement is a very simple pastebin-like web application written in Rust. It provides a very minimal interface intended to be as intrusion-free as possible. There's no admin or login required.

Running in Docker

A Docker container is provided at blakerain/cement. This container will run Cement on port 3000.

docker run --name my-cement -d blakerain/cement

You can specify the SQLite database using the DB environment variable. For example, if you have mounted a volume under /data into which the database should be stored as cement.db, you can set the DB environment variable to sqlite:///data/cement.db:

docker run -d \
  --name my-cement \
  -e DB=sqlite:///data/cement.db \
  -v cement_data:/data