Commit graph

21 commits

Author SHA1 Message Date
jordan@doyle.la
ebe0df5cc6
Upgrade rocket to latest version 2020-07-07 16:05:06 +01:00
jordan@doyle.la
9c53294b88
Move to async rocket 2020-04-13 11:47:50 +01:00
j_dickert
be88df22f7 Add linenumbering
Fix rocket dependencies
2020-04-05 14:48:42 +01:00
Jordan Johnson-Doyle
5b7868080f
Prevent cloning paste on show where not necessary 2019-02-21 16:41:39 +00:00
Jordan Johnson-Doyle
c2219e15f4
Avoid cloning generated id when submitting paste 2019-02-21 11:51:36 +00:00
Jordan Johnson-Doyle
e466683062
Unnecessary fully qualified struct reference 2019-02-16 19:00:54 +00:00
Jordan Johnson-Doyle
c3b886c196
Remove dependency on ring 2019-02-16 18:55:37 +00:00
Jordan Johnson-Doyle
caa8c3568d
Remove unused dependencies, slightly optimise release binary size 2019-02-16 18:05:06 +00:00
Jordan Johnson-Doyle
f675f75b3b
Rename render -> show_paste 2019-02-16 11:51:14 +00:00
Jordan Johnson-Doyle
09e411739a
Run cargo fmt 2019-02-15 22:01:22 +00:00
Jordan Johnson-Doyle
b32010f905
Better error handling, remove all unwraps 2019-02-15 21:53:13 +00:00
Jordan Johnson-Doyle
e689ff7714
Separate id generation and persisting 2019-02-15 21:01:37 +00:00
Jordan Johnson-Doyle
9c340ea08c
Only need to read from BIN_BUFFER_SIZE once 2019-02-14 01:24:24 +00:00
Jordan Johnson-Doyle
707b5b16e7
Use dereferencing for request parameters 2019-02-13 21:52:17 +00:00
Jordan Johnson-Doyle
4fde268117
Add more comments 2019-02-12 01:23:06 +00:00
Jordan Johnson-Doyle
2c1571881e
No need to clone the Host header 2019-02-12 01:22:47 +00:00
Jordan Johnson-Doyle
b876bb9c84
Return correct URL from the API, not one pointing to localhost 2019-02-12 01:08:38 +00:00
Jordan Johnson-Doyle
ae33163f9a
Return plaintext to CLI requests 2019-02-12 00:54:41 +00:00
Jordan Johnson-Doyle
7b9062aa21
Clean up code a bit 2019-02-11 10:47:12 +00:00
Jordan Johnson-Doyle
9d4b3ecafc
Move business logic out of main, use askama and bound the ENTRIES 2019-02-11 10:37:53 +00:00
Jordan Johnson-Doyle
2aeb2d5e19
Initial commit 2019-02-10 21:35:04 +00:00