Aaron Hill
d137a8635b
Replace Pin::new_unchecked
with #[pin_project] in tuple_from_req!
( #1293 )
...
Using some module trickery, we can generate a tuple struct for each
invocation of the macro. This allows us to use `pin_project` to project
through to the tuple fields, removing the need to use
`Pin::new_unchecked`
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2020-01-28 10:45:25 +09:00
Nikolay Kim
4a8a9ef405
update tests and clippy warnings
2019-12-08 12:31:16 +06:00
Nikolay Kim
6c9f9fff73
clippy warnings
2019-12-08 00:46:51 +06:00
Nikolay Kim
4dc31aac93
use actix_rt::test for test setup
2019-11-26 11:25:50 +06:00
Nikolay Kim
8683ba8bb0
rename .to_async() to .to()
2019-11-21 21:36:35 +06:00
Nikolay Kim
3127dd4db6
migrate actix-web to std::future
2019-11-21 16:02:17 +06:00
Priit Laes
0f09415469
Convert documentation examples to Rust 2018 edition ( #1120 )
...
* Convert types::query examples to rust-2018 edition
* Convert types::json examples to rust-2018 edition
* Convert types::path examples to rust-2018 edition
* Convert types::form examples to rust-2018 edition
* Convert rest of the examples to rust-2018 edition.
2019-10-07 11:29:11 +06:00
Nikolay Kim
7b1dcaffda
cleanup deprecation warning for Box<dyn>
2019-07-17 11:44:39 +06:00
Nikolay Kim
fa78da8156
unify route and app data, it allows to provide global extractor config #775
2019-05-04 19:43:49 -07:00
Nikolay Kim
e659e09e29
update tests
2019-04-18 11:01:04 -07:00
Nikolay Kim
ee33f52736
make extractor config type explicit
2019-04-13 16:35:25 -07:00
Nikolay Kim
4f30fa9d46
Remove generic type for request payload, always use default
2019-04-13 14:50:54 -07:00
Nikolay Kim
75b213a6f0
refactor FromRequest trait
2019-04-07 14:43:07 -07:00
Nikolay Kim
725ee3d396
rename extract to types
2019-03-16 21:43:48 -07:00
Nikolay Kim
49d65fb07a
move extract to submodule
2019-03-10 09:34:25 -07:00
Nikolay Kim
0e57b4ad61
export extractor configs via web module
2019-03-07 14:01:52 -08:00
Nikolay Kim
b211966c28
Payload extractor
2019-03-07 13:33:40 -08:00
Nikolay Kim
ceb6d45bf2
reexpost extractors in web module
2019-03-07 11:43:46 -08:00
Nikolay Kim
fe22e83144
refactor service registration process; unify services and resources
2019-03-06 15:47:15 -08:00
Nikolay Kim
bd4124587a
provide block_on function for testing purpose
2019-03-04 13:25:35 -08:00
Nikolay Kim
8502c32a3c
re-enable extractor tests
2019-03-03 15:32:47 -08:00
Nikolay Kim
360082f99f
update api docs
2019-03-03 14:45:56 -08:00
Nikolay Kim
e50d4c5e0e
rename extractor module to extract, re-enable doc tests
2019-03-03 13:53:31 -08:00