From e23a385171a400d497f1f8a65bccb12679e78d31 Mon Sep 17 00:00:00 2001 From: Wayland Yang Date: Sun, 7 Jun 2026 12:24:43 +0800 Subject: [PATCH] =?UTF-8?q?chore(deps):=20bump=20axum-server=200.7=20?= =?UTF-8?q?=E2=86=92=200.8=20=E2=80=94=20closes=20#192?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit axum-server 0.8 drops the unmaintained rustls-pemfile dependency (RUSTSEC-2025-0134) and switches to rustls-pki-types directly. Breaking change handled: Handle is now generic over A: Address. The daemon binds TCP so the type parameter is std::net::SocketAddr (internally aliased as IpSocketAddr in axum-server's source). Verification on dev box: - cargo check --workspace: clean - cargo fmt --check: clean - cargo clippy --workspace --all-targets -D warnings: clean - cargo test -p forkd-controller --lib: 66/66 pass - cargo audit: 0 advisories (rustls-pemfile gone from the lockfile) Co-Authored-By: Claude Opus 4.7 (1M context) --- Cargo.toml | 2 +- crates/forkd-controller/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 39054ff..36e4e0a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,7 +28,7 @@ serde = { version = "1", features = ["derive"] } serde_json = "1" clap = { version = "4", features = ["derive", "env"] } axum = "0.7" -axum-server = { version = "0.7", features = ["tls-rustls"] } +axum-server = { version = "0.8", features = ["tls-rustls"] } rustls = "0.23" parking_lot = "0.12" reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] } diff --git a/crates/forkd-controller/src/lib.rs b/crates/forkd-controller/src/lib.rs index 1d351b8..edf8e36 100644 --- a/crates/forkd-controller/src/lib.rs +++ b/crates/forkd-controller/src/lib.rs @@ -195,7 +195,7 @@ async fn load_tls(cert: &Path, key: &Path) -> Result { .with_context(|| format!("load TLS cert {} / key {}", cert.display(), key.display())) } -fn spawn_shutdown_signal(handle: Handle) { +fn spawn_shutdown_signal(handle: Handle) { tokio::spawn(async move { let ctrl_c = async { let _ = tokio::signal::ctrl_c().await;