Skip to content
Myr

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

9 files+42 added−22 removed

modified:axum/Cargo.toml+2 added-2 removed
1[package]2name = "axum"3version = "0.8.8" # remember to bump the version that axum-extra depends on3version = "0.8.9" # remember to bump the version that axum-extra depends on4categories = ["asynchronous", "network-programming", "web-programming::http-server"]5description = "HTTP routing and request handling library that focuses on ergonomics and modularity"6edition = "2021"7rust-version = { workspace = true }
114 unmodified lines
122tower-layer = "0.3.2"123tower-service = "0.3"124125# optional dependencies126axum-macros = { path = "../axum-macros", version = "0.5.0", optional = true }126axum-macros = { path = "../axum-macros", version = "0.5.1", optional = true }127base64 = { version = "0.22.1", optional = true }128form_urlencoded = { version = "1.1.0", optional = true }129futures-sink = { version = "0.3", optional = true }130hyper = { version = "1.4.0", optional = true }
119 unmodified lines
modified:axum/CHANGELOG.md+11 added-3 removed
14 unmodified lines
15 (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])2223[#3158]: https://github.com/tokio-rs/axum/pull/315824[#3261]: https://github.com/tokio-rs/axum/pull/3261
1 unmodified line
26[#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/35863031# 0.8.93233- **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])3839[#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/36114344# 0.8.84546- Clarify documentation for `Router::route_layer` ([#3567])
2395 unmodified lines
modified:axum-extra/Cargo.toml+3 added-3 removed
modified:axum-extra/CHANGELOG.md+13 added-6 removed
5 unmodified lines
6and this project adheres to [Semantic Versioning].78# Unreleased910- **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 lines
22 .route_with_tsr("/path", get(/* handler */))23 .route_with_tsr("/path", post(/* handler */))24 ```2531[#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/35862829# 0.12.63031- **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])3738[#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/36114142# 0.12.54344- **fixed:** `JsonLines` now correctly respects the default body limit ([#3591])45
535 unmodified lines
modified:axum-macros/Cargo.toml+1 added-1 removed
7 unmodified lines
8license = "MIT"9name = "axum-macros"10readme = "README.md"11repository = "https://github.com/tokio-rs/axum"12version = "0.5.0" # remember to also bump the version that axum and axum-extra depends on12version = "0.5.1" # remember to also bump the version that axum and axum-extra depends on1314[package.metadata.docs.rs]15all-features = true16
29 unmodified lines
modified:axum-macros/CHANGELOG.md+5 added-1 removed
7 unmodified lines
8# Unreleased910- **breaking:** `#[from_request(via(Extractor))]` now uses the extractor's11 rejection type instead of `axum::response::Response` ([#3261])1213[#3261]: https://github.com/tokio-rs/axum/pull/32611415# 0.5.11617- **fixed:** Fix compilation error when deriving `TypedPath` with18 `OptionalFromRequestParts` being in scope ([#3645])1915[#3261]: https://github.com/tokio-rs/axum/pull/326120[#3645]: https://github.com/tokio-rs/axum/pull/36452122# 0.5.023
195 unmodified lines
modified:examples/key-value-store/src/main.rs+1 added
112 unmodified lines
113 .collect::<Vec<String>>()114 .join("\n")115}116117#[allow(deprecated)]118fn admin_routes() -> Router<SharedState> {119 async fn delete_all_keys(State(state): State<SharedState>) {120 state.write().unwrap().db.clear();121 }
30 unmodified lines
modified:examples/Cargo.lock+3 added-3 removed
256 unmodified lines
257]258259[[package]]260name = "axum"261version = "0.8.8"261version = "0.8.9"262dependencies = [263 "axum-core",264 "axum-macros",265 "base64 0.22.1",
46 unmodified lines
312]313314[[package]]315name = "axum-extra"316version = "0.12.5"316version = "0.12.6"317dependencies = [318 "axum",319 "axum-core",320 "bytes",
11 unmodified lines
332]333334[[package]]335name = "axum-macros"336version = "0.5.0"336version = "0.5.1"337dependencies = [338 "proc-macro2",339 "quote",340 "syn",
5149 unmodified lines
modified:Cargo.lock+3 added-3 removed
97 unmodified lines
98checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"99100[[package]]101name = "axum"102version = "0.8.8"102version = "0.8.9"103dependencies = [104 "anyhow",105 "axum-core",106 "axum-extra",
64 unmodified lines
171]172173[[package]]174name = "axum-extra"175version = "0.12.5"175version = "0.12.6"176dependencies = [177 "axum",178 "axum-core",179 "axum-macros",
34 unmodified lines
214]215216[[package]]217name = "axum-macros"218version = "0.5.0"218version = "0.5.1"219dependencies = [220 "axum",221 "axum-extra",222 "proc-macro2",
2161 unmodified lines