mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-07 00:00:12 +02:00
Merge branch 'v0.8.x' into jplatte/v0.8.5
This commit is contained in:
+23
-4
@@ -11,20 +11,39 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
- **breaking:** `#[from_request(via(Extractor))]` now uses the extractor's
|
||||
rejection type instead of `axum::response::Response` ([#3261])
|
||||
- **breaking:** `axum::serve` now applies hyper's default `header_read_timeout` ([#3478])
|
||||
- **added:** Implement `OptionalFromRequest` for `Multipart` ([#3220])
|
||||
- **added:** New `ListenerExt::limit_connections` allows limiting concurrent `axum::serve` connections ([#3489])
|
||||
- **changed:** `serve` has an additional generic argument and can now work with any response body
|
||||
type, not just `axum::body::Body` ([#3205])
|
||||
- **change:** Update minimum rust version to 1.78 ([#3412])
|
||||
|
||||
[#3158]: https://github.com/tokio-rs/axum/pull/3158
|
||||
[#3261]: https://github.com/tokio-rs/axum/pull/3261
|
||||
[#3205]: https://github.com/tokio-rs/axum/pull/3205
|
||||
[#3220]: https://github.com/tokio-rs/axum/pull/3220
|
||||
[#3412]: https://github.com/tokio-rs/axum/pull/3412
|
||||
[#3478]: https://github.com/tokio-rs/axum/pull/3478
|
||||
[#3489]: https://github.com/tokio-rs/axum/pull/3489
|
||||
|
||||
# 0.8.5
|
||||
|
||||
- **fixed:** Reject JSON request bodies with trailing characters after the JSON document ([#3453])
|
||||
- **added:** Implement `OptionalFromRequest` for `Multipart` ([#3220])
|
||||
- **added:** Getter methods `Location::{status_code, location}`
|
||||
- **added:** Support for writing arbitrary binary data into server-sent events ([#3425])]
|
||||
- **added:** `middleware::ResponseAxumBodyLayer` for mapping response body to `axum::body::Body` ([#3469])
|
||||
- **added:** `impl FusedStream for WebSocket` ([#3443])
|
||||
- **changed:** The `sse` module and `Sse` type no longer depend on the `tokio` feature ([#3154])
|
||||
- **changed:** If the location given to one of `Redirect`s constructors is not a valid
|
||||
header value, instead of panicking on construction, the `IntoResponse` impl now returns
|
||||
an HTTP 500, just like `Json` does when serialization fails ([#3377])
|
||||
- **changed:** Update minimum rust version to 1.78 ([#3412])
|
||||
|
||||
[#3154]: https://github.com/tokio-rs/axum/pull/3154
|
||||
[#3220]: https://github.com/tokio-rs/axum/pull/3220
|
||||
[#3377]: https://github.com/tokio-rs/axum/pull/3377
|
||||
[#3412]: https://github.com/tokio-rs/axum/pull/3412
|
||||
[#3425]: https://github.com/tokio-rs/axum/pull/3425
|
||||
[#3443]: https://github.com/tokio-rs/axum/pull/3443
|
||||
[#3453]: https://github.com/tokio-rs/axum/pull/3453
|
||||
[#3469]: https://github.com/tokio-rs/axum/pull/3469
|
||||
|
||||
# 0.8.4
|
||||
|
||||
- **added:** `Router::reset_fallback` ([#3320])
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "axum"
|
||||
version = "0.8.4" # remember to bump the version that axum-extra depends on
|
||||
version = "0.8.5" # remember to bump the version that axum-extra depends on
|
||||
categories = ["asynchronous", "network-programming", "web-programming::http-server"]
|
||||
description = "Web framework that focuses on ergonomics and modularity"
|
||||
edition = "2021"
|
||||
@@ -94,7 +94,7 @@ __private_docs = [
|
||||
__private = ["tokio", "http1", "dep:reqwest"]
|
||||
|
||||
[dependencies]
|
||||
axum-core = { path = "../axum-core", version = "0.5.2" }
|
||||
axum-core = { path = "../axum-core", version = "0.5.3" }
|
||||
bytes = "1.0"
|
||||
futures-core = "0.3"
|
||||
futures-util = { version = "0.3", default-features = false, features = ["alloc"] }
|
||||
|
||||
Reference in New Issue
Block a user