Kai Ren
cdba30d45f
Skip empty chucks for BodyStream and SizedStream ( #1308 )
...
* Skip empty chucks for BodyStream and SizedStream when streaming response (#1267 )
* Fix tests to fail on previous implementation
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2020-01-28 18:28:09 +09:00
Aaron Hill
74dcc7366d
Remove several uses of Pin::new_unchecked
( #1294 )
...
Most of the relevant struct already had a `#[pin_project]` attribute,
but it wasn't being used.
The remaining uses of `Pin::new_unchecked` all involve going from a
`&mut T` to a `Pin<&mut T>`, without directly observing a `Pin<&mut T>`
first. As such, they cannot be replaced by `pin_project`
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2020-01-28 12:35:51 +09:00
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
Yuki Okushi
a2d4ff157e
Update call_service
documentation ( #1302 )
...
Co-authored-by: Christian Battaglia <christian.d.battaglia@gmail.com>
2020-01-28 08:09:46 +09:00
Andrey Torsunov
71d11644a7
Add ability to name a handler function as 'config' ( #1290 )
...
* eliminate handler naming restrictions #1277
* Update actix-web-codegen/CHANGES.md
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2020-01-26 07:22:40 +09:00
Maxim Vorobjov
8888520d83
Add benchmark for full stack request lifecycle ( #1298 )
...
* add benchmark for full stack request lifecycle
* add direct service benchmarks
* fix newline
* add cloneable service benchmarks
* remove cloneable bench experiments + cargo fmt
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2020-01-25 08:05:25 +09:00
Yuki Okushi
3ed6519c0c
Update changelog ( #13 )
2020-01-25 02:45:24 +09:00
Yuki Okushi
71e2f682e2
Update example ( #12 )
...
* Update example
* Check example's build on CI
* Update README
2020-01-25 02:39:32 +09:00
Yuki Okushi
cf3577550c
Tweak caches ( #1319 )
...
* Try to use `cargo-cache`
* Tweak issue template
2020-01-25 02:27:13 +09:00
Yuki Okushi
777990d575
Update dependencies and bump up version to 0.5 ( #11 )
...
* Bump up bytes to 0.5
* Update example's dependencies
* Bump up version to 0.5
2020-01-24 15:41:57 +09:00
Maxim Vorobjov
58844874a0
Fixing #1295 convert UnsafeCell to RefCell in CloneableService ( #1303 )
...
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2020-01-24 14:51:38 +09:00
cetra3
78f24dda03
Initial Issue template ( #1311 )
...
* Initial Issue template
* First round of changes for the bug report
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2020-01-24 07:32:34 +09:00
godofdream
e17b3accb9
Remove codecoverage for tests and examples ( #1299 )
...
* Ignore Tests & Examples for CodeCoverage
Ignore Tests & Examples for CodeCoverage
2020-01-24 05:10:02 +09:00
Yuki Okushi
c6fa007e72
Fix vcpkg cache ( #1312 )
2020-01-23 11:27:34 +09:00
Rob Ede
a3287948d1
allow explicit SameSite=None cookies ( #1282 )
...
fixes #1035
2020-01-23 10:08:23 +09:00
Yuki Okushi
2e9ab0625e
Tweak actions ( #1305 )
...
* Add benchmark action
* Fix Windows build
2020-01-23 06:23:53 +09:00
Yuki Okushi
3a5b62b550
Add dependencies instruction ( #1281 )
2020-01-16 23:17:17 +09:00
Adam Kewley
412e54ce10
Fixed documentation typo for actix-files ( #1278 )
2020-01-15 11:09:58 -08:00
Parker Timmerman
fe2cc9bf4a
Bump up prost to 0.6.0 ( #10 )
2020-01-16 01:48:33 +09:00
Yuki Okushi
c4b3ef64c2
Prepare release for 0.4.0 ( #21 )
...
* Prepare release for 0.4.0
* Update CHANGELOG.md
2020-01-15 00:03:23 +09:00
Yuki Okushi
8dd2c77165
Make the lint stricter ( #20 )
...
* Make the lint stricter
* Add explicit lifetimes
* Allow `needless_doctest_main`
2020-01-14 13:31:20 +09:00
Yuki Okushi
d757f44557
Remove description()
( #19 )
...
* Remove `description()`
It has been deprecated.
2020-01-11 22:12:11 +09:00
Peter Hall
bca41f8d40
Changes to Cors builder ( #1266 )
...
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2020-01-11 04:53:17 +09:00
Jacob Brown
7c974ee668
Update doc comment for HttpRequest::app_data
( #1265 )
...
* update doc comment for `HttpRequest::app_data`
* add `no_run` to doc comment
* add `ignore` to doc comment
* Update src/request.rs
Co-Authored-By: Yuki Okushi <huyuumi.dev@gmail.com>
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2020-01-11 03:55:20 +09:00
linkmauve
abb462ef85
Replace sha1 dependency with sha-1 ( #1258 )
...
* Replace sha1 dependency with sha-1
This other crate is being maintained, and it offers better performances
when using the `asm` feature (especially [on
AArch64](https://github.com/RustCrypto/hashes/pull/97 )).
* Update CHANGES.md with the sha-1 migration
* Add a test for hash_key()
2020-01-11 02:34:31 +09:00
Nikolay Kim
e66312b664
add extra constraints
2020-01-10 11:36:59 +06:00
Nikolay Kim
39f4b2b39e
Merge branch 'master' of github.com:actix/actix-web
2020-01-10 11:28:58 +06:00
Nikolay Kim
f6ff056b8a
Fix panic with already borrowed: BorrowMutError #1263
2020-01-10 11:26:54 +06:00
Yuki Okushi
4d9fb6825c
Update bytes to 0.5 and base64 to 0.11 ( #18 )
...
* Update bytes to 0.5 and base64 to 0.11
* Update changelog
2020-01-10 05:57:42 +09:00
Yuki Okushi
51ab4fb73d
Tweak actions to use cache and not to be stuck on the way ( #1264 )
2020-01-10 03:30:45 +09:00
Yuki Okushi
cfaa307d47
Cache build to decrease CI time ( #17 )
2020-01-09 17:51:53 +09:00
Yuki Okushi
b4508baf7e
Run CI with GitHub Actions ( #16 )
...
* Run CI with GitHub Actions
* Remove benchmarks for now
* Check MSRV
2020-01-07 18:08:00 +09:00
Yuki Okushi
deb1508d2f
Cleanup documentation and metadata ( #15 )
2020-01-07 13:54:46 +09:00
Masaki Hara
d83cbc8542
Support actix-web 2.x ( #14 )
2020-01-07 01:00:43 +09:00
linkmauve
f5fd6bc49f
Fix actix-http examples ( #1259 )
...
Fix actix-http examples
2020-01-07 00:15:04 +09:00
Yuki Okushi
2225642c6d
Merge pull request #8 from JohnTitor/actix-web-2
...
Migrate to actix-web 2.0.0 and std::future
2020-01-03 16:59:29 +09:00
Jeremy Wright
2803fcbe22
Small grammaritical update to lib.rs ( #1248 )
2020-01-03 08:45:17 +06:00
Yuki Okushi
d7387ca5b5
Tweak CI
2020-01-02 04:34:26 +09:00
Yuki Okushi
06a2499071
Update CHANGES.md
2020-01-02 04:26:17 +09:00
Yuki Okushi
fe2553474e
Run rustfmt
2020-01-02 04:22:52 +09:00
Yuki Okushi
0eeda4c398
Migrate to actix-web v2
2020-01-02 03:55:17 +09:00
Yuki Okushi
342c711bad
Make crate 2018 edition
2020-01-02 01:04:00 +09:00
Nikolay Kim
67793c5d92
add ssl feature migration
2019-12-30 21:22:04 +06:00
Jonathan Brookins
bcb5086c91
Added 2.0.0 rustls feature name change ( #1244 )
2019-12-30 21:16:04 +06:00
wojciechkepka
7bd2270290
Fix link to example in readme.md ( #1236 )
...
* Fix link to example in readme.md
* Add links to openssl and rustls examples
* Rustls should be uppercase
2019-12-26 19:42:07 +09:00
Nikolay Kim
8f6a00324e
Merge pull request #37 from pandaman64/patch-1
...
bump actix-web version
2019-12-26 11:18:39 +04:00
pandaman64
73e70bd249
bump actix-web version
2019-12-26 15:47:31 +09:00
Nikolay Kim
a4ad5e6b69
update timeouts for test server
2019-12-25 20:52:20 +04:00
Nikolay Kim
6db909a3e7
update migration
2019-12-25 20:27:30 +04:00
Nikolay Kim
642ae161c0
prep actix-web release
2019-12-25 20:21:00 +04:00