1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-27 17:52:56 +01:00
Commit Graph

41 Commits

Author SHA1 Message Date
Rob Ede
538c1bea34
chore: disallow e bindings 2024-08-10 05:15:49 +01:00
Rob Ede
e0e4d1e661
chore: move deny lints to manifests 2024-07-07 03:54:00 +01:00
Jonathan Lim
3db7891303
Scope macro (#3136)
* add scope proc macro

* Update scope macro code to work with current HttpServiceFactory

* started some test code

* add some unit tests

* code formatting cleanup

* add another test for combining and calling 2 scopes

* format code with formatter

* Update actix-web-codegen/src/lib.rs with comment documentation fix

Co-authored-by: oliver <151407407+kwfn@users.noreply.github.com>

* work in progress. revised procedural macro to change othe macro call

* add tests again. refactor nested code.

* clean up code. fix bugs with route and method attributes with parameters

* clean up for rust fmt

* clean up for rust fmt

* fix out of date comment for scope macro

* sync to master branch by adding test_wrap

* needed to format code

* test: split out scope tests

* test: add negative tests

* chore: move imports back inside (?)

* docs: tweak scope docs

* fix: prevent trailing slashes in scope prefixes

* chore: address clippy lints

---------

Co-authored-by: oliver <151407407+kwfn@users.noreply.github.com>
Co-authored-by: Rob Ede <robjtede@icloud.com>
2024-06-07 22:10:48 +00:00
Rob Ede
acb740584c
fix: correct aws rustls v0.23 feature gating 2024-05-19 11:55:12 +01:00
asonix
2e63ff5928
actix-web: Add rustls 0.23 (#3363)
* Fix type confusion in some scenarios

When the feature for rustls 0.22 is enabled, and rustls 0.23 is also
present in a project, there suddently exist multiple paths for errors
when building middleware chains due to the use of two consecutive `?`
operators without specifying the intermediate error type.

This commit addresses the issue by removing the first `?`, so that the
first error type will always be known, and the second `?` always has a
well defined implementation.

* Add CHANGES entry about type confusion

* actix-http: add rustls 0.23 support

* actix-http: update ws example, tests for rustls 0.23

* actix-http: add rustls 0.23 to changelog

* Update comments to mention 0.23 instead of 0.22

* awc: add rustls 0.23 support

This also fixes certificate lookup when native-roots is enabled for rustls 0.22.

* awc: update changelog for rustls 0.23

* awc: Add base rustls-0_23 feature without roots to better enable custom config

* actix-test: add rustls-0.23

* actix-test: add rustls 0.23 to changelog

* awc: update changelog with rustls 0.23 tweaks

* actix-web: add rustls 0.23

* Add rustls-0_23 to CI

* Update tls_rustls.rs

* review nits

* review nits part 2

* fix doc test

---------

Co-authored-by: Rob Ede <robjtede@icloud.com>
2024-05-18 19:05:58 +00:00
asonix
44f502e050
awc: gate TlsConnectorService behind any feature that uses it (#3350) 2024-05-14 05:57:58 +01:00
Rob Ede
7f0504e32b
chore: temp allow #[allow(non_local_definitions)] 2024-03-01 18:11:30 +00:00
dependabot[bot]
8c31d137aa
build(deps): bump taiki-e/install-action from 2.26.18 to 2.27.2 (#3294)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Rob Ede <robjtede@icloud.com>
2024-02-19 12:31:10 +00:00
Rob Ede
2125aca2c5
Rustls v0.22 support (#3275) 2024-02-03 23:55:01 +00:00
Rob Ede
215a52f565
chore: avoid single char error bindings 2023-09-03 19:09:42 +01:00
dependabot[bot]
d445742974
Update trust-dns-resolver requirement from 0.22 to 0.23 (#3121)
* Update trust-dns-resolver requirement from 0.22 to 0.23

Updates the requirements on [trust-dns-resolver](https://github.com/bluejekyll/trust-dns) to permit the latest version.
- [Release notes](https://github.com/bluejekyll/trust-dns/releases)
- [Changelog](https://github.com/bluejekyll/trust-dns/blob/main/CHANGELOG.md)
- [Commits](https://github.com/bluejekyll/trust-dns/compare/v0.22.0...v0.23.0)

---
updated-dependencies:
- dependency-name: trust-dns-resolver
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* fixup post-upgrade

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Rob Ede <robjtede@icloud.com>
2023-09-03 04:40:41 +00:00
Rob Ede
ac95362340
refactor: simplify connector feature combos 2023-08-29 01:14:54 +01:00
Rob Ede
905c30af86
Actix Web Rustls v0.21 support (#3116) 2023-08-29 01:11:11 +01:00
Rob Ede
eaabe7e686
ci: reinstate coverage 2023-08-03 06:58:31 +01:00
Rob Ede
12dbda986e
test: fix test_h2_connection_drop spurious hang
fixes #3061
2023-08-03 06:54:50 +01:00
Rob Ede
79a38e0628
apply standard formatting 2023-07-17 02:38:12 +01:00
Rob Ede
241da6e081
update MSRV to 1.65 (#3059) 2023-07-02 01:09:15 +01:00
Rob Ede
fdfb3d45db
remove direct dep on ahash for client pool 2023-02-26 03:50:36 +00:00
Rob Ede
29bd6a1dd5
fix version requirement for futures_util 2022-12-18 01:34:48 +00:00
Rob Ede
cc7145d41d
rust 1.64 clippy run (#2891) 2022-09-25 20:54:17 +01:00
Rob Ede
8ddb24b49b
prepare awc release 3.0.0 (#2684) 2022-03-08 16:51:40 +00:00
Rob Ede
218e34ee17
fix http error debug impl 2022-02-22 07:07:12 +00:00
Rob Ede
3d621677a5
clippy 2022-02-08 08:00:47 +00:00
Rob Ede
3200de3f34
fix request head timeout (#2611) 2022-01-31 17:30:34 +00:00
Rob Ede
50894e392e
document new body map types 2022-01-23 23:26:35 +00:00
Rob Ede
1bc1538118
use tokio::main in client example 2022-01-19 21:36:14 +00:00
Rob Ede
2308f8afa4
use const header values where possible 2021-12-27 16:15:33 +00:00
Rob Ede
3756dfc2ce
move client to own module 2021-12-25 02:34:31 +00:00
Rob Ede
1296e07c48
relax unpin bounds on payload types (#2545) 2021-12-24 17:47:47 +00:00
Rob Ede
fb036264cc
only build SslConnectorBuilder once (#2503) 2021-12-18 16:44:30 +00:00
Rob Ede
11ee8ec3ab
align remaining header map terminology (#2510) 2021-12-13 16:08:08 +00:00
Rob Ede
2d053b7036
remove actix_http::http module (#2488) 2021-12-05 14:37:20 +00:00
Rob Ede
c7c02ef99d
body ergonomics v3 (#2468) 2021-12-04 19:40:47 +00:00
Rob Ede
c4b20df56a
convert all remaining IETF RFC links to new format 2021-12-02 03:45:04 +00:00
Rob Ede
e045418038
prepare for actix-tls rc.1 (#2474) 2021-11-30 14:12:04 +00:00
Rob Ede
a978b417f3
use actix ready future in remaining return types 2021-11-30 13:11:41 +00:00
fakeshadow
e7987e7429
awc: support http2 over plain tcp with feature flag (#2439)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-11-22 18:16:56 +00:00
Rob Ede
4df1cd78b7
simplify AnyBody and BodySize (#2446) 2021-11-16 09:21:10 +00:00
Rob Ede
a2f59c02f7
bump actix-server to beta 9 (#2442) 2021-11-15 04:03:33 +00:00
fakeshadow
5e554dca35
fix awc clippy warning (#2431) 2021-11-04 15:57:55 +00:00
fakeshadow
d13854505f
move actix_http::client module to awc (#2425) 2021-10-26 00:37:40 +01:00