Christian Battaglia
489a3b9f1d
Merge branch 'master' into master
2020-01-27 13:44:42 -05: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
kevinpoitra
0efaed91c7
Merge branch 'master' into master
2020-01-24 14:38:18 -05:00
Yuki Okushi
cf3577550c
Tweak caches ( #1319 )
...
* Try to use `cargo-cache`
* Tweak issue template
2020-01-25 02:27:13 +09:00
kevinpoitra
3d622d6012
Fix type confusion when using `time::parse` followed by `using_offset`
2020-01-24 01:16:27 -06:00
kevinpoitra
8d692c0d08
Add missing `time::offset` macro import
2020-01-24 00:41:15 -06:00
kevinpoitra
8945236b57
Merge branch 'master' into master
2020-01-24 01:28:59 -05: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
kevinpoitra
afd5c21aa3
Merge branch 'master' into master
2020-01-23 17:11:05 -05: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
kevinpoitra
9398e006c5
Merge branch 'master' into master
2020-01-23 01:38:43 -05: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
kevinpoitra
bcf7e0134e
Merge pull request #2 from jhpratt/master
...
Upgrade to time v0.2.4
2020-01-21 15:11:35 -05:00
Jacob Pratt
55ef6b97b3
Upgrade to time v0.2.4
...
v0.2.3 has been yanked, as it was backwards imcompatible. This version
reverts the breaking change, while still supporting rustc back to
1.34.0.
2020-01-21 03:05:12 -05:00
kevinpoitra
b69716cdfe
Merge pull request #1 from jhpratt/master
...
Upgrade to time 0.2.3
2020-01-20 16:37:36 -05:00
Jacob Pratt
5192d296f9
Upgrade to time 0.2.3
...
Mainly minor changes. Type inference can be used alongside the new
`time::parse` method, such that the type doesn't need to be specified.
This will be useful if a refactoring takes place that changes the type.
There are also new macros, which are used where possible.
One change that is not immediately obvious, in `HttpDate`, there was an
unnecessary conditional. As the time crate allows for negative durations
(and can perform arithmetic with such), the if/else can be removed
entirely.
Time v0.2.3 also has some bug fixes, which is why I am not using a more
general v0.2 in Cargo.toml.
2020-01-17 00:09:52 -05:00
kevinpoitra
4afe09b1dc
Merge branch 'master' into master
2020-01-16 13:38:50 -05: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
kevinpoitra
3e5e3cdac8
Merge branch 'master' into master
2020-01-11 06:15:49 -05: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
51ab4fb73d
Tweak actions to use cache and not to be stuck on the way ( #1264 )
2020-01-10 03:30:45 +09:00
kevinpoitra
7a43c564e1
Convert `Cookie::max_age` and `Cookie::expires` examples to `time` 0.2
2020-01-08 02:46:36 -06:00
kevinpoitra
85e341b0b0
Fix the actix-http: 🍪 :do_not_panic_on_large_max_ages test
2020-01-08 02:20:57 -06:00
kevinpoitra
0eb8d07e84
Truncate any nanoseconds from a supplied `Duration` within `Cookie::set_max_age` to ensure two Cookies with the same amount whole seconds equate to one another
2020-01-08 02:20:26 -06:00
kevinpoitra
7e569bccf6
Replace a few additional instances of `Duration::seconds(0)` with `Duration::zero()`
2020-01-08 01:48:27 -06:00
kevinpoitra
3554e2d45e
Use `OffsetDateTime::as_seconds_f64` instead of manually calculating the amount of seconds from nanoseconds
2020-01-08 01:23:12 -06:00
kevinpoitra
29116b8465
Remove unneeded conversion of time::Duration to std::time::Duration
2020-01-08 01:18:53 -06:00
kevinpoitra
a1366e2097
Use the more readable version of `Duration::seconds(0)`, `Duration::zero()`
2020-01-08 01:11:25 -06:00
kevinpoitra
c3b4f05149
Enforce a UTC time offset when converting an `OffsetDateTime` into a Header value
2020-01-08 01:09:21 -06:00
kevinpoitra
edd2cb827e
Use `time` without any of its deprecated functions
2020-01-08 01:04:22 -06:00
kevinpoitra
92381b10fa
Update CHANGES.md
2020-01-07 22:12:26 -06:00
kevinpoitra
a3b6f2981e
Correctly parse C's asctime time format using time 0.2's new format patterns
2020-01-07 22:05:28 -06:00
kevinpoitra
555dead1c4
Upgrade `time` to 0.2.2
2020-01-07 22:01:24 -06:00
kevinpoitra
34bbf75ecc
Implement logic to convert a RFC 850 two-digit year into a full length year, and organize time parsing related functions
2020-01-07 16:47:41 -06:00
kevinpoitra
dca8e23b4d
Merge branch 'master' into master
2020-01-06 13:57:13 -05:00
linkmauve
f5fd6bc49f
Fix actix-http examples ( #1259 )
...
Fix actix-http examples
2020-01-07 00:15:04 +09:00
kevinpoitra
52018a6c47
Fix a few errors with time related tests from the `time` upgrade
2020-01-06 05:42:32 -06:00
kevinpoitra
bd4807f4d3
Update CHANGES.md
2020-01-06 05:09:58 -06:00
kevinpoitra
381c8ebe92
Remove unused `time` dependency from actix-multipart
2020-01-06 05:08:03 -06:00
kevinpoitra
2158a8e097
Parse time strings with `PrimitiveDateTime::parse` instead of `OffsetDateTime::parse`
2020-01-06 02:23:23 -06:00