Merge branch 'v0.8.x' into yanns/v0.8.9
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Yann Simon · committed by Yann Simon · parents 4412164, c59208c · Browse files · 9 files·+42 added−22 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
9 files+42 added−22 removed
- other:+42 added−22 removed
Provenance
- Commit
19fa67d- Tree
74c0010- Author
Yann Simon <yann.simon.fr@gmail.com>- Committer
Yann Simon <yann.simon.fr@gmail.com>- Parent 1
4412164- Parent 2
c59208c
9 files changed+42 added−22 removed
modified:axum/Cargo.toml+2 added-2 removed
1 [package]2 name = "axum"3-version = "0.8.8" # remember to bump the version that axum-extra depends on3+version = "0.8.9" # remember to bump the version that axum-extra depends on4 categories = ["asynchronous", "network-programming", "web-programming::http-server"]5 description = "HTTP routing and request handling library that focuses on ergonomics and modularity"6 edition = "2021"7 rust-version = { workspace = true }114 unmodified lines122 tower-layer = "0.3.2"123 tower-service = "0.3"124 125 # optional dependencies126-axum-macros = { path = "../axum-macros", version = "0.5.0", optional = true }126+axum-macros = { path = "../axum-macros", version = "0.5.1", optional = true }127 base64 = { version = "0.22.1", optional = true }128 form_urlencoded = { version = "1.1.0", optional = true }129 futures-sink = { version = "0.3", optional = true }130 hyper = { version = "1.4.0", optional = true }119 unmodified linesmodified:axum/CHANGELOG.md+11 added-3 removed
14 unmodified lines15 (never returned `Err`) and be an uninhabited type if `with_graceful_shutdown` is not used16 (because it was already never terminating if that method wasn't used) ([#3601])17 - **added:** New `ListenerExt::limit_connections` allows limiting concurrent `axum::serve` connections ([#3489])18 - **added:** `MethodRouter::method_filter` ([#3586])19-- **added:** `WebSocketUpgrade::{requested_protocols, set_selected_protocol}` for more20- flexible subprotocol selection ([#3597])19 - **changed:** `serve` has an additional generic argument and can now work with any response body20 type, not just `axum::body::Body` ([#3205])23-- **changed:** Update minimum rust version to 1.80 ([#3620])21 - **changed:** `Redirect` constructors now accept any `impl Into<String>` ([#3635])22 23 [#3158]: https://github.com/tokio-rs/axum/pull/315824 [#3261]: https://github.com/tokio-rs/axum/pull/32611 unmodified line26 [#3478]: https://github.com/tokio-rs/axum/pull/347827 [#3601]: https://github.com/tokio-rs/axum/pull/360128 [#3489]: https://github.com/tokio-rs/axum/pull/348929 [#3586]: https://github.com/tokio-rs/axum/pull/358630+31+# 0.8.932+33+- **added:** `WebSocketUpgrade::{requested_protocols, set_selected_protocol}` for more34+ flexible subprotocol selection ([#3597])35+- **changed:** Update minimum rust version to 1.80 ([#3620])36+- **fixed:** Set connect endpoint on correct field in MethodRouter ([#3656])37+- **fixed:** Return specific error message when multipart body limit is exceeded ([#3611])38+39 [#3597]: https://github.com/tokio-rs/axum/pull/359740 [#3620]: https://github.com/tokio-rs/axum/pull/362041+[#3656]: https://github.com/tokio-rs/axum/pull/365642+[#3611]: https://github.com/tokio-rs/axum/pull/361143 44 # 0.8.845 46 - Clarify documentation for `Router::route_layer` ([#3567])2395 unmodified linesmodified:axum-extra/Cargo.toml+3 added-3 removed
7 unmodified lines89101112121314151693 unmodified lines11011111211311411511411511611711811938 unmodified lines7 unmodified lineslicense = "MIT"name = "axum-extra"readme = "README.md"repository = "https://github.com/tokio-rs/axum"version = "0.12.5"version = "0.12.6"
[package.metadata.docs.rs]all-features = true
93 unmodified linestower-layer = "0.3"tower-service = "0.3"
# optional dependenciesaxum = { path = "../axum", version = "0.8.8", default-features = false, optional = true }axum-macros = { path = "../axum-macros", version = "0.5.0", optional = true }axum = { path = "../axum", version = "0.8.9", default-features = false, optional = true }axum-macros = { path = "../axum-macros", version = "0.5.1", optional = true }cookie = { package = "cookie", version = "0.18.0", features = ["percent-encode"], optional = true }fastrand = { version = "2.1.0", optional = true }form_urlencoded = { version = "1.1.0", optional = true }headers = { version = "0.4.0", optional = true }38 unmodified linesmodified:axum-extra/CHANGELOG.md+13 added-6 removed
5 unmodified lines6 and this project adheres to [Semantic Versioning].7 8 # Unreleased9 10-- **fixed:** Escape backslashes and double quotes in `Content-Disposition` filenames11- to prevent header parameter injection in `Attachment` and `FileStream` ([#3664])12-- `vpath!` macro now stops the compilation if your path is using deprecated13- path variables in the old `107` format, such as `:var` and `*var`. the 14- only allowed way now is `{var}`.10 - **breaking:** Remove the deprecated `Host`, `Scheme` and `OptionalPath`11 extractors ([#3599])12 - Also remove `HostRejection` which only had `FailedToResolveHost`13 previously used in the `Host` extractor ([#3636])8 unmodified lines22 .route_with_tsr("/path", get(/* handler */))23 .route_with_tsr("/path", post(/* handler */))24 ```25 31-[#3664]: https://github.com/tokio-rs/axum/pull/366426 [#3599]: https://github.com/tokio-rs/axum/pull/359927 [#3586]: https://github.com/tokio-rs/axum/pull/358628 29+# 0.12.630+31+- **fixed:** Escape backslashes and double quotes in `Content-Disposition` filenames32+ to prevent header parameter injection in `Attachment` and `FileStream` ([#3664])33+- `vpath!` macro now stops the compilation if your path is using deprecated34+ path variables in the old `107` format, such as `:var` and `*var`. the 35+ only allowed way now is `{var}`. ([#3618])36+- **fixed:** Return specific error message when multipart body limit is exceeded ([#3611])37+38+[#3664]: https://github.com/tokio-rs/axum/pull/366439+[#3618]: https://github.com/tokio-rs/axum/pull/361840+[#3611]: https://github.com/tokio-rs/axum/pull/361141+42 # 0.12.543 44 - **fixed:** `JsonLines` now correctly respects the default body limit ([#3591])45 535 unmodified linesmodified:axum-macros/Cargo.toml+1 added-1 removed
7 unmodified lines8 license = "MIT"9 name = "axum-macros"10 readme = "README.md"11 repository = "https://github.com/tokio-rs/axum"12-version = "0.5.0" # remember to also bump the version that axum and axum-extra depends on12+version = "0.5.1" # remember to also bump the version that axum and axum-extra depends on13 14 [package.metadata.docs.rs]15 all-features = true16 29 unmodified linesmodified:axum-macros/CHANGELOG.md+5 added-1 removed
7 unmodified lines8 # Unreleased9 10 - **breaking:** `#[from_request(via(Extractor))]` now uses the extractor's11 rejection type instead of `axum::response::Response` ([#3261])12+13+[#3261]: https://github.com/tokio-rs/axum/pull/326114+15+# 0.5.116+17 - **fixed:** Fix compilation error when deriving `TypedPath` with18 `OptionalFromRequestParts` being in scope ([#3645])19 15-[#3261]: https://github.com/tokio-rs/axum/pull/326120 [#3645]: https://github.com/tokio-rs/axum/pull/364521 22 # 0.5.023 195 unmodified linesmodified:examples/key-value-store/src/main.rs+1 added
112 unmodified lines113 .collect::<Vec<String>>()114 .join("\n")115 }116 117+#[allow(deprecated)]118 fn admin_routes() -> Router<SharedState> {119 async fn delete_all_keys(State(state): State<SharedState>) {120 state.write().unwrap().db.clear();121 }30 unmodified linesmodified:examples/Cargo.lock+3 added-3 removed
256 unmodified lines257 ]258 259 [[package]]260 name = "axum"261-version = "0.8.8"261+version = "0.8.9"262 dependencies = [263 "axum-core",264 "axum-macros",265 "base64 0.22.1",46 unmodified lines312 ]313 314 [[package]]315 name = "axum-extra"316-version = "0.12.5"316+version = "0.12.6"317 dependencies = [318 "axum",319 "axum-core",320 "bytes",11 unmodified lines332 ]333 334 [[package]]335 name = "axum-macros"336-version = "0.5.0"336+version = "0.5.1"337 dependencies = [338 "proc-macro2",339 "quote",340 "syn",5149 unmodified linesmodified:Cargo.lock+3 added-3 removed
97 unmodified lines98 checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"99 100 [[package]]101 name = "axum"102-version = "0.8.8"102+version = "0.8.9"103 dependencies = [104 "anyhow",105 "axum-core",106 "axum-extra",64 unmodified lines171 ]172 173 [[package]]174 name = "axum-extra"175-version = "0.12.5"175+version = "0.12.6"176 dependencies = [177 "axum",178 "axum-core",179 "axum-macros",34 unmodified lines214 ]215 216 [[package]]217 name = "axum-macros"218-version = "0.5.0"218+version = "0.5.1"219 dependencies = [220 "axum",221 "axum-extra",222 "proc-macro2",2161 unmodified lines