Rustbin

A minimalist pastebin and URL shortener written in rust.

Usage

From your browser

Open the homepage, paste your text, and click Save.



From your terminal

$ curl -F '[email protected]' https://bin.example.com/
$ curl -F '[email protected]' -F 'expires_in=3600' https://bin.example.com/

Optional field: expires_in accepts never or a positive number of seconds.


You may want to use this friendly wrapper instead.



Viewing pastes

Open /{id} to view a paste and /{id}/raw for plain text.



Syntax highlighting

Syntax highlighting is automatic based on the file extension. You can also append an extension to the paste URL:

https://bin.example.com/abc123def4.rs

Line links are available with fragments such as #L12 or #L12-L20.



URL shortening

Paste a URL on its own to create a short link. Visiting the short URL will redirect to the original.

$ echo 'https://example.com' | curl -F 'file=@-' https://bin.example.com/