Skip to content

Commit 370c6df

Browse files
authored
examples: Update to axum-server 0.8 (#3605)
1 parent f72bb26 commit 370c6df

File tree

5 files changed

+15
-22
lines changed

5 files changed

+15
-22
lines changed

examples/Cargo.lock

Lines changed: 11 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/tls-graceful-shutdown/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ publish = false
77
[dependencies]
88
axum = { path = "../../axum" }
99
axum-extra = { path = "../../axum-extra" }
10-
axum-server = { version = "0.7", features = ["tls-rustls"] }
10+
axum-server = { version = "0.8", features = ["tls-rustls"] }
1111
tokio = { version = "1", features = ["full"] }
1212
tracing = "0.1"
1313
tracing-subscriber = { version = "0.3", features = ["env-filter"] }

examples/tls-graceful-shutdown/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ async fn main() {
6969
.unwrap();
7070
}
7171

72-
async fn shutdown_signal(handle: axum_server::Handle) {
72+
async fn shutdown_signal(handle: axum_server::Handle<SocketAddr>) {
7373
let ctrl_c = async {
7474
signal::ctrl_c()
7575
.await

examples/tls-rustls/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ publish = false
77
[dependencies]
88
axum = { path = "../../axum" }
99
axum-extra = { path = "../../axum-extra" }
10-
axum-server = { version = "0.7", features = ["tls-rustls"] }
10+
axum-server = { version = "0.8", features = ["tls-rustls"] }
1111
tokio = { version = "1", features = ["full"] }
1212
tracing = "0.1"
1313
tracing-subscriber = { version = "0.3", features = ["env-filter"] }

examples/websockets-http2/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ publish = false
66

77
[dependencies]
88
axum = { path = "../../axum", features = ["ws", "http2"] }
9-
axum-server = { version = "0.7", features = ["tls-rustls"] }
9+
axum-server = { version = "0.8", features = ["tls-rustls"] }
1010
tokio = { version = "1", features = ["full"] }
1111
tower-http = { version = "0.6", features = ["fs"] }
1212
tracing = "0.1"

0 commit comments

Comments
 (0)