mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-08 00:00:24 +02:00
Release axum and axum-extra (#2145)
Co-authored-by: Jonas Platte <[email protected]>
This commit is contained in:
co-authored by
Jonas Platte
parent
68333b2fcf
commit
3b92cd7593
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
# Contributing to axum
|
# Contributing to axum
|
||||||
|
|
||||||
:balloon: Thanks for your help improving the project! We are so happy to have
|
🎈 Thanks for your help improving the project! We are so happy to have
|
||||||
you!
|
you!
|
||||||
|
|
||||||
There are opportunities to contribute to `axum` at any level. It doesn't
|
There are opportunities to contribute to `axum` at any level. It doesn't
|
||||||
|
|||||||
+1
-1
@@ -23,7 +23,7 @@ with your question.
|
|||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
:balloon: Thanks for your help improving the project! We are so happy to have
|
🎈 Thanks for your help improving the project! We are so happy to have
|
||||||
you! We have a [contributing guide][contributing] to help you get involved in the
|
you! We have a [contributing guide][contributing] to help you get involved in the
|
||||||
`axum` project.
|
`axum` project.
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning].
|
|||||||
|
|
||||||
# Unreleased
|
# Unreleased
|
||||||
|
|
||||||
|
- None.
|
||||||
|
|
||||||
|
# 0.7.7 (03. August, 2023)
|
||||||
|
|
||||||
- **added:** `Clone` implementation for `ErasedJson` ([#2142])
|
- **added:** `Clone` implementation for `ErasedJson` ([#2142])
|
||||||
|
|
||||||
[#2142]: https://github.com/tokio-rs/axum/pull/2142
|
[#2142]: https://github.com/tokio-rs/axum/pull/2142
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ license = "MIT"
|
|||||||
name = "axum-extra"
|
name = "axum-extra"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
repository = "https://github.com/tokio-rs/axum"
|
repository = "https://github.com/tokio-rs/axum"
|
||||||
version = "0.7.6"
|
version = "0.7.7"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = []
|
default = []
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ with your question.
|
|||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
:balloon: Thanks for your help improving the project! We are so happy to have
|
🎈 Thanks for your help improving the project! We are so happy to have
|
||||||
you! We have a [contributing guide][contributing] to help you get involved in the
|
you! We have a [contributing guide][contributing] to help you get involved in the
|
||||||
`axum` project.
|
`axum` project.
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ with your question.
|
|||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
:balloon: Thanks for your help improving the project! We are so happy to have
|
🎈 Thanks for your help improving the project! We are so happy to have
|
||||||
you! We have a [contributing guide][contributing] to help you get involved in the
|
you! We have a [contributing guide][contributing] to help you get involved in the
|
||||||
`axum` project.
|
`axum` project.
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
use axum::{
|
use axum::{
|
||||||
extract::{State, FromRef},
|
extract::{FromRef, State},
|
||||||
routing::get,
|
routing::get,
|
||||||
Router,
|
Router,
|
||||||
};
|
};
|
||||||
@@ -30,6 +30,6 @@ enum InnerState {}
|
|||||||
|
|
||||||
impl FromRef<AppState> for InnerState {
|
impl FromRef<AppState> for InnerState {
|
||||||
fn from_ref(_: &AppState) -> Self {
|
fn from_ref(_: &AppState) -> Self {
|
||||||
todo!(":shrug:")
|
todo!("🤷")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
use axum::{
|
use axum::{
|
||||||
extract::{State, FromRef},
|
extract::{FromRef, State},
|
||||||
routing::get,
|
routing::get,
|
||||||
Router,
|
Router,
|
||||||
};
|
};
|
||||||
@@ -31,6 +31,6 @@ enum InnerState {}
|
|||||||
|
|
||||||
impl FromRef<AppState> for InnerState {
|
impl FromRef<AppState> for InnerState {
|
||||||
fn from_ref(_: &AppState) -> Self {
|
fn from_ref(_: &AppState) -> Self {
|
||||||
todo!(":shrug:")
|
todo!("🤷")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
# Unreleased
|
# Unreleased
|
||||||
|
|
||||||
|
- None.
|
||||||
|
|
||||||
|
# 0.6.20 (03. August, 2023)
|
||||||
|
|
||||||
- **added:** `WebSocketUpgrade::write_buffer_size` and `WebSocketUpgrade::max_write_buffer_size`
|
- **added:** `WebSocketUpgrade::write_buffer_size` and `WebSocketUpgrade::max_write_buffer_size`
|
||||||
- **changed:** Deprecate `WebSocketUpgrade::max_send_queue`
|
- **changed:** Deprecate `WebSocketUpgrade::max_send_queue`
|
||||||
- **change:** Update tokio-tungstenite to 0.20
|
- **change:** Update tokio-tungstenite to 0.20
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "axum"
|
name = "axum"
|
||||||
version = "0.6.19"
|
version = "0.6.20"
|
||||||
categories = ["asynchronous", "network-programming", "web-programming::http-server"]
|
categories = ["asynchronous", "network-programming", "web-programming::http-server"]
|
||||||
description = "Web framework that focuses on ergonomics and modularity"
|
description = "Web framework that focuses on ergonomics and modularity"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|||||||
+1
-1
@@ -130,7 +130,7 @@ built with `axum`.
|
|||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
:balloon: Thanks for your help improving the project! We are so happy to have
|
🎈 Thanks for your help improving the project! We are so happy to have
|
||||||
you! We have a [contributing guide][contributing] to help you get involved in the
|
you! We have a [contributing guide][contributing] to help you get involved in the
|
||||||
`axum` project.
|
`axum` project.
|
||||||
|
|
||||||
|
|||||||
@@ -45,8 +45,8 @@ in handlers. See those examples:
|
|||||||
* [`anyhow-error-response`][anyhow] for generic boxed errors
|
* [`anyhow-error-response`][anyhow] for generic boxed errors
|
||||||
* [`error-handling-and-dependency-injection`][ehdi] for application-specific detailed errors
|
* [`error-handling-and-dependency-injection`][ehdi] for application-specific detailed errors
|
||||||
|
|
||||||
[anyhow]:https://github.com/tokio-rs/axum/blob/main/examples/anyhow-error-response/src/main.rs
|
[anyhow]: https://github.com/tokio-rs/axum/blob/main/examples/anyhow-error-response/src/main.rs
|
||||||
[ehdi]:https://github.com/tokio-rs/axum/blob/main/examples/error-handling-and-dependency-injection/src/main.rs
|
[ehdi]: https://github.com/tokio-rs/axum/blob/main/examples/error-handling-and-dependency-injection/src/main.rs
|
||||||
|
|
||||||
This also applies to extractors. If an extractor doesn't match the request the
|
This also applies to extractors. If an extractor doesn't match the request the
|
||||||
request will be rejected and a response will be returned without calling your
|
request will be rejected and a response will be returned without calling your
|
||||||
|
|||||||
@@ -39,8 +39,8 @@
|
|||||||
//! * [`anyhow-error-response`][anyhow] for generic boxed errors
|
//! * [`anyhow-error-response`][anyhow] for generic boxed errors
|
||||||
//! * [`error-handling-and-dependency-injection`][ehdi] for application-specific detailed errors
|
//! * [`error-handling-and-dependency-injection`][ehdi] for application-specific detailed errors
|
||||||
//!
|
//!
|
||||||
//! [anyhow]:https://github.com/tokio-rs/axum/blob/main/examples/anyhow-error-response/src/main.rs
|
//! [anyhow]: https://github.com/tokio-rs/axum/blob/main/examples/anyhow-error-response/src/main.rs
|
||||||
//! [ehdi]:https://github.com/tokio-rs/axum/blob/main/examples/error-handling-and-dependency-injection/src/main.rs
|
//! [ehdi]: https://github.com/tokio-rs/axum/blob/main/examples/error-handling-and-dependency-injection/src/main.rs
|
||||||
//!
|
//!
|
||||||
#![doc = include_str!("../docs/debugging_handler_type_errors.md")]
|
#![doc = include_str!("../docs/debugging_handler_type_errors.md")]
|
||||||
|
|
||||||
|
|||||||
@@ -1375,7 +1375,7 @@ mod tests {
|
|||||||
fn buiding_complex_router() {
|
fn buiding_complex_router() {
|
||||||
let app = crate::Router::new().route(
|
let app = crate::Router::new().route(
|
||||||
"/",
|
"/",
|
||||||
// use the all the things :bomb:
|
// use the all the things 💣️
|
||||||
get(ok)
|
get(ok)
|
||||||
.post(ok)
|
.post(ok)
|
||||||
.route_layer(ValidateRequestHeaderLayer::bearer("password"))
|
.route_layer(ValidateRequestHeaderLayer::bearer("password"))
|
||||||
|
|||||||
Reference in New Issue
Block a user