Emi Tatsuo
abe3c00fbf
Merge branch 'fix-kristall' into user-management
2020-11-21 23:57:35 -05:00
Ben Aaron Goldberg
4d0b0521d6
Include a workaround for a bug with rustls & webpki
2020-11-21 23:45:05 -05:00
Emi Tatsuo
6e82ae059d
Add user management routes
2020-11-21 23:03:56 -05:00
Emi Tatsuo
a9b347a8c9
Merge branch 'rework-success' into user-management
2020-11-21 17:34:08 -05:00
Emi Tatsuo
d5f213b270
Add ratelimiting example
...
Was really supposed to add this earlier but I forgot about it. Oops
2020-11-21 17:20:32 -05:00
Emi Tatsuo
115d0aa120
Merge branch 'doc-into-req' into user-management
2020-11-21 17:19:49 -05:00
Emi Tatsuo
0b4fca2c69
Merge branch 'allow-async-handlers' into user-management
2020-11-21 16:55:36 -05:00
Emi Tatsuo
cd7af1025a
Cleanup typos in routes docs
...
I should really use spellcheck more often
2020-11-20 23:51:22 -05:00
Emi Tatsuo
e678e45b78
Merge branch 'routes' into user-management
2020-11-20 21:53:00 -05:00
Emi Tatsuo
349f6da698
Add rate limiting feature
...
ugghhhhhh I hate how big the governer crate is but there's no alternative besides DIY
2020-11-20 21:15:37 -05:00
Emi Tatsuo
5254c17e36
Rework Request::success methods
2020-11-20 14:18:11 -05:00
Emi Tatsuo
2604b02e2b
Merge branch 'routes' into allow-async-handlers
2020-11-20 14:00:49 -05:00
Emi Tatsuo
536e404fdf
Make RoutingNode generic
2020-11-20 13:54:24 -05:00
Emi Tatsuo
59e3222ce8
Add trailing segments to request
2020-11-20 13:22:34 -05:00
Emi Tatsuo
20181cce96
Updated changelog
2020-11-20 10:05:18 -05:00
Emi Tatsuo
3296d00ec3
Add From<Borrow<Document>> to Response
...
This allows users to call &mut Document.into() in order to create a response, so that you
can do it right in the middle of one of those builder call chain thingies
2020-11-20 09:51:37 -05:00
Emi Tatsuo
435330b415
Made Request::document a bit more generic
...
Also how did I not know about the Borrow trait until now???
2020-11-20 09:40:57 -05:00
Emi Tatsuo
f0798b66a3
Update changelog for improved handlers
2020-11-19 23:52:34 -05:00
Emi Tatsuo
5612ce1085
Removed unnecessary dependency on futures-rs
2020-11-19 23:51:25 -05:00
Emi Tatsuo
29c831649d
Changed the add_route API to allow the use of simpler, async handlers
2020-11-19 23:48:55 -05:00
Emi Tatsuo
54816e1f67
Fixed bug where root handler was never hit for requests other than exact matches
2020-11-19 23:34:45 -05:00
Emi Tatsuo
b085fa5836
Added routing example
2020-11-19 22:53:50 -05:00
Emi Tatsuo
c162bdd156
Updated changelog to add routing API
...
Look I remembered this time!
2020-11-19 22:37:31 -05:00
Emi Tatsuo
10c957aee5
Re-restrict Handler & HandlerResponse
2020-11-19 22:35:35 -05:00
Emi Tatsuo
dc18bf2d1c
Fix examples (& also bugs with args in lib.rs)
...
I thought I was clever with Into<Handler> :(
2020-11-19 22:33:44 -05:00
Emi Tatsuo
4a0d07c2ca
Switched Builder & Server to routes from a single handler
2020-11-19 22:11:31 -05:00
Emi Tatsuo
e6c66ed9e7
Don't feature gate routing
...
I really thought this was gonna be more complicated when I was planning it. Well,
"planning" it.
2020-11-19 21:45:41 -05:00
Emi Tatsuo
26e0fd2702
Added some routing classes
2020-11-19 21:37:02 -05:00
panicbit
0ca71e46c9
Merge pull request #28 from Alch-Emi/clippy
...
Appease clippy
2020-11-20 00:56:47 +01:00
Emi Tatsuo
0bcce9fd6f
Appease clippy
...
Please my compiler is so angry ;-;
2020-11-19 18:03:10 -05:00
Emi Tatsuo
766c472cbf
Added the add_certificate
and attach
methods
2020-11-19 17:41:32 -05:00
Emi Tatsuo
cdc3921a83
Refix docs
...
Oh so /that's/ how you disable a lint
2020-11-19 17:07:33 -05:00
Emi Tatsuo
79b06b08ba
Refactor SignedInUser -> RegisteredUser
2020-11-19 17:00:32 -05:00
Emi Tatsuo
2f1196228f
Return a full SignedInUser from lookup_user(), restrict access to PartialUser
...
Okay this is a much nicer API tbh. Why didn't I do this from the start? 'cause I'm bad
at planning that's why. We got there eventually though!
2020-11-19 16:54:29 -05:00
Emi Tatsuo
1908d0a0d7
Implement the set password method
2020-11-19 16:39:02 -05:00
Emi Tatsuo
f0517ef0b7
Fix user management example
2020-11-19 16:24:38 -05:00
Emi Tatsuo
fb205cd397
Switched from bcrypt to argon
2020-11-19 16:07:52 -05:00
Emi Tatsuo
ff5f294dae
Restricted access to several fields of SignedInUser
2020-11-19 15:21:26 -05:00
Emi Tatsuo
4996ae99d2
Merge remote-tracking branch 'upstream/master' into user-management
2020-11-19 14:41:18 -05:00
Emi Tatsuo
abcb296574
Cleaned up some warnings in user_management
...
*sweep sweep sweep sweep sweep*
2020-11-19 14:27:36 -05:00
Emi Tatsuo
18228bb1c5
Save SignedInUser on drop, and make changes necessary to that end
...
Which was a surprisingly large number of changes /shrug
2020-11-19 14:25:36 -05:00
panicbit
07c2d539d0
Merge branch 'Alch-Emi-timeout-override'
2020-11-19 19:39:28 +01:00
panicbit
46ab84ba04
streamline send_response
2020-11-19 19:34:48 +01:00
Emi Tatsuo
e7cf782a60
Improve user management docs
2020-11-19 13:20:14 -05:00
Emi Tatsuo
aeeee86aae
Updated changelog for complex mime timeout override
2020-11-19 12:37:41 -05:00
Emi Tatsuo
b50a5e3244
Merge remote-tracking branch 'upstream/master' into timeout-override
2020-11-19 12:36:42 -05:00
panicbit
381bccf36f
update changelog
2020-11-19 18:35:21 +01:00
panicbit
4e251d0cb6
Merge pull request #25 from Alch-Emi/trim-deps
...
Trim dependencies & move directory serving utils to feature
2020-11-19 18:29:52 +01:00
panicbit
a3882b76de
update changelog
2020-11-19 18:18:29 +01:00
panicbit
824405d881
Merge pull request #23 from Alch-Emi/custom-cert-path
...
Add ability to customize certificate path
2020-11-19 18:14:32 +01:00