src | ||
static | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
license.md | ||
readme.md |
Rust Bucket
My ideal vision of a pastebin/image/file host, easy to use from the command line with any tools, and from a browser with and without javascript
Borrows ideas and inspiration from many different pastebins over the years:
- ZeroBin (client-side encryption)
- chefi (paste with netcat)
- Rocket.rs example pastebin (framework)
- dank-paste (multipart/form-data support)
- ix.io (downloadable client)
Delete after 1/2 views, 5/10 minutes, 1 hour/day/week/month/year, forever, delete after not viewed within X
Don't store file type, only used for link, can use any suffix for link
Store when to delete (how many views + how long), store how many times viewed, store when uploaded (or file creation date?)
Maybe if we only support 'burn after reading' like zerobin we can use a special created_date to signify this and then never count views, or, another file, since that would interfere with 'delete after X time'
Crazy random thoughts:
- hash IDs, use un-hashed ID to encrypt paste