Skip to content

chore(deps): bump axum-server 0.7 → 0.8 — closes #192#232

Merged
WaylandYang merged 1 commit into
mainfrom
chore/axum-server-0.8
Jun 7, 2026
Merged

chore(deps): bump axum-server 0.7 → 0.8 — closes #192#232
WaylandYang merged 1 commit into
mainfrom
chore/axum-server-0.8

Conversation

@WaylandYang
Copy link
Copy Markdown
Contributor

Summary

Bumps axum-server from 0.7 → 0.8 to drop the unmaintained rustls-pemfile dependency flagged by RUSTSEC-2025-0134 (issue #192). The 0.8 release switched to rustls-pki-types directly, eliminating the advisory from our tree.

Breaking change handled

axum-server 0.8 made Handle generic over A: Address. Since the controller binds TCP, the type parameter is std::net::SocketAddr (axum-server's source aliases this internally as IpSocketAddr). Only one call site needed the explicit annotation:

fn spawn_shutdown_signal(handle: Handle<SocketAddr>) { ... }

let handle = Handle::new(); infers the type from the subsequent bind() / bind_rustls() call.

Verification (dev box)

  • cargo check --workspace
  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test -p forkd-controller --lib → 66/66 pass
  • cargo audit → 0 advisories; rustls-pemfile removed from Cargo.lock

Test plan

  • CI green (fmt + clippy + test + audit)
  • HTTPS smoke test on dev box: forkd daemon --tls-cert ... --tls-key ... accepts a connection and gracefully shuts down on SIGTERM

Closes #192.

🤖 Generated with Claude Code

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) <noreply@anthropic.com>
@WaylandYang WaylandYang merged commit 9bd14f5 into main Jun 7, 2026
2 checks passed
@WaylandYang WaylandYang deleted the chore/axum-server-0.8 branch June 7, 2026 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Track rustls-pemfile (RUSTSEC-2025-0134) — unmaintained via axum-server

1 participant