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
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
a2d4ff157e
Update call_service
documentation ( #1302 )
...
Co-authored-by: Christian Battaglia <christian.d.battaglia@gmail.com >
2020-01-28 08:09:46 +09:00
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
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
cf3577550c
Tweak caches ( #1319 )
...
* Try to use `cargo-cache`
* Tweak issue template
2020-01-25 02:27:13 +09:00
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
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
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
c6fa007e72
Fix vcpkg cache ( #1312 )
2020-01-23 11:27:34 +09:00
a3287948d1
allow explicit SameSite=None cookies ( #1282 )
...
fixes #1035
2020-01-23 10:08:23 +09:00
2e9ab0625e
Tweak actions ( #1305 )
...
* Add benchmark action
* Fix Windows build
2020-01-23 06:23:53 +09:00
3a5b62b550
Add dependencies instruction ( #1281 )
2020-01-16 23:17:17 +09:00
412e54ce10
Fixed documentation typo for actix-files ( #1278 )
2020-01-15 11:09:58 -08:00
bca41f8d40
Changes to Cors builder ( #1266 )
...
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com >
2020-01-11 04:53:17 +09:00
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
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
e66312b664
add extra constraints
2020-01-10 11:36:59 +06:00
39f4b2b39e
Merge branch 'master' of github.com:actix/actix-web
identity-v0.2.1
2020-01-10 11:28:58 +06:00
f6ff056b8a
Fix panic with already borrowed: BorrowMutError #1263
2020-01-10 11:26:54 +06:00
51ab4fb73d
Tweak actions to use cache and not to be stuck on the way ( #1264 )
2020-01-10 03:30:45 +09:00
f5fd6bc49f
Fix actix-http examples ( #1259 )
...
Fix actix-http examples
2020-01-07 00:15:04 +09:00
2803fcbe22
Small grammaritical update to lib.rs ( #1248 )
2020-01-03 08:45:17 +06:00
67793c5d92
add ssl feature migration
2019-12-30 21:22:04 +06:00
bcb5086c91
Added 2.0.0 rustls feature name change ( #1244 )
2019-12-30 21:16:04 +06:00
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
a4ad5e6b69
update timeouts for test server
2019-12-25 20:52:20 +04:00
6db909a3e7
update migration
web-v2.0.0
2019-12-25 20:27:30 +04:00
642ae161c0
prep actix-web release
2019-12-25 20:21:00 +04:00
7b3c99b933
prep actix-framed release
framed-v0.3.0
2019-12-25 20:17:22 +04:00
f86ce0390e
allow to specify multi pattern for resources
2019-12-25 20:14:44 +04:00
7882f545e5
Allow to gracefully stop test server via TestServer::stop()
2019-12-25 12:10:48 +04:00
1c75e6876b
update migration
2019-12-22 17:16:07 +04:00
6a0cd2dced
Rename HttpServer::start() to HttpServer::run()
2019-12-22 17:12:22 +04:00
c7f3915779
update actix-service dep
2019-12-22 16:39:25 +04:00
f45db1f909
Enable GitHub Actions and fix file URL behavior ( #1232 )
...
* Use GitHub Actions
* Fix unused imports on Windows
* Fix test for Windows
* Stop to run CI for i686-pc-windows-msvc for now
* Use `/` instead of `\` on Windows
* Add entry to changelog
* Prepare actix-files release
files-v0.2.1
2019-12-22 16:43:41 +09:00
3751a4018e
fixed test::init_service api docs (missing await) ( #1230 )
2019-12-21 08:47:18 +06:00
0cb1b0642f
add test server data test
2019-12-20 23:18:59 +06:00
48476362a3
update changes
session-v0.3.0
cors-v0.2.0
multipart-v0.2.0
identity-v0.2.0
actors-v2.0.0
files-v0.2.0
2019-12-20 17:59:34 +06:00
2b4256baab
add links to configs
web-v2.0.0-rc
2019-12-20 17:49:05 +06:00
e5a50f423d
Make web::Data deref to Arc<T> #1214
2019-12-20 17:45:35 +06:00
8b8a9a995d
bump ver
2019-12-20 17:36:48 +06:00
74fa4060c2
fix awc tests
2019-12-20 17:27:32 +06:00
c877840c07
rename App::register_data to App::app_data and HttpRequest::app_data returns Option<&T> instead of Option<&Data<T>>
2019-12-20 17:13:09 +06:00
20248daeda
Allow to set peer_addr for TestRequest #1074
2019-12-20 16:11:51 +06:00
a08d8dab70
AppConfig::secure() is always false. #1202
2019-12-20 16:04:51 +06:00
fbbb4a86e9
feat: add access to the session also from immutable references ( #1225 )
2019-12-20 13:59:07 +06:00
1d12ba9d5f
Replace brotli with brotli2 #1224
http-v1.0.1
2019-12-20 13:50:07 +06:00
8c54054844
Use .advance() intead of .split_to()
2019-12-19 09:56:14 +06:00
1732ae8c79
fix Bodyencoding trait usage
2019-12-18 09:30:14 +06:00