1
0
Fork 0
mirror of https://gitlab.com/msrd0/gotham-restful.git synced 2025-02-23 21:12:28 +00:00
Commit graph

40 commits

Author SHA1 Message Date
5587ded60d
merge workspace and main crate 2020-05-05 23:18:05 +02:00
cc86d3396c
rename update to change, delete to remove, and remove rest_ prefix from macros 2020-05-04 20:45:46 +02:00
3de130e104
emit proper error message for async fn read_all(state: &State) 2020-05-04 20:30:15 +02:00
110ef2be7a
simplify derive/macro code 2020-05-04 19:08:22 +02:00
992d9be195
use less non-public syn api 2020-05-03 23:43:42 +02:00
5e5e3aaf9d
don't use syn::token module 2020-05-03 23:25:48 +02:00
8593e133b7
also detect _state as state argument 2020-04-30 16:49:40 +02:00
a36993f615
there is no need to force people to take &State arg
this highly improves async compatibility
2020-04-30 00:37:24 +02:00
d08d9bea8c
fix some clippy warnings 2020-04-25 17:01:16 +02:00
147ea980bf
move to Rust 1.42 features 2020-04-25 16:47:33 +02:00
523d01d443
async fn and conn are not compatible atm since diesel is completely sync 2020-04-18 15:48:00 +02:00
310d7f79d5
fix state ownership issue when using the database feature 2020-04-16 23:48:54 +02:00
63e6eb9b32
re-export gotham 2020-04-15 23:20:41 +02:00
694b45ea60
Merge branch 'master' into gotham-master
Conflicts:
	example/Cargo.toml
	gotham_restful/Cargo.toml
2020-04-15 22:55:26 +02:00
c3e2185396
remove some more expect/panic stuff 2020-04-15 21:41:24 +02:00
89f6494b51
asyncify method proc macro 2020-04-15 21:15:40 +02:00
427c836f52
expose async to handlers 2020-04-15 20:55:25 +02:00
f425f21ff3
update jsonwebtoken, futures, and hyper and co 2020-04-14 17:44:07 +02:00
d610103750 Idiomatify error handling code in gotham_derive 2020-04-12 19:58:05 +00:00
d10895076e auth is now per-method and not per-return-type 2020-04-11 18:13:36 +00:00
1d4d75c84a
proper error message for too many / too few parameters 2020-04-11 19:20:30 +02:00
381a230b81
remove panics from expand_method 2020-04-08 22:07:33 +02:00
810680d9b1 Allow OpenAPI customizations 2020-04-07 20:44:02 +00:00
744f56acf9 Less generic type arguments 2020-04-06 16:20:08 +00:00
6e9d8bd158
derive: AuthStatus<T> needs T to always be Clone 2020-01-25 14:04:26 +01:00
e710182f14
update versions 2020-01-24 17:59:20 +01:00
d3b27bae8a
we need to clone the AuthSource because lifetimes are annoying 2020-01-24 17:52:53 +01:00
088774fc50 implement auth parsing/verifying inside a gotham middleware 2020-01-22 16:53:02 +00:00
f7600977c8
fix possible issue with NoContent implicit return and database connection use 2020-01-14 23:48:14 +01:00
e2cf2238fd
remove debug output from macro 2020-01-14 23:34:18 +01:00
26cbe28b00
workaround for #7: no state when using conn 2020-01-14 23:32:16 +01:00
876da721f8
some fixes for database support 2020-01-14 23:16:31 +01:00
73457f2fda
basic diesel-middleware repo handling #7 2020-01-14 03:27:49 +01:00
ce6e93a790 Keep fn on method handlers 2019-10-27 20:44:23 +00:00
df3b735429
add first tests 2019-10-14 02:17:25 +02:00
4429fced3b
apply clippy suggestions 2019-10-13 23:36:10 +02:00
0153b2e22f
add search method 2019-10-13 17:43:42 +02:00
0cf7c9aa3a
add derive macro for resource 2019-10-06 15:03:30 +02:00
a28ccb98f1
default to NoContent when method has no return type 2019-10-05 14:56:51 +02:00
3f64ac443f
add proc macro attributes for all rest methods 2019-10-05 00:21:41 +02:00