Skip to content

fosslife/bin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

34 Commits

Repository files navigation

Pastebin written in Rust

uses vs-code likemonaco-editorui and rust in the backend:

image

The editor should support all the languages that monaco editor supports. the language are downloaded at runtime, depending on the language user sets.

to set the langugage pressCtrl-lor the button at the bottom bar. and then type the name of the language in prompt.

deployment:

the bin is written in Rust, so the server is statically linked binary of size 3MB. all you need to do is serve the assets with it (Only images and css file specifically).

to deploy, compile a release build, and start the server with your preferred way, make sure you putassetsdir from the repo the same level as binary. binary will createpastes folder to store pastes automatically.