Skip to content

Finish the axum 0.8 migration so main builds again - #38

Merged
jaschadub merged 1 commit into
mainfrom
fix/axum-0.8-gate
Nov 5, 2026
Merged

jaschadub merged 1 commit into
mainfrom
fix/axum-0.8-gate

Conversation

@jaschadub

Copy link
Copy Markdown
Contributor

PR #29 bumped axum to 0.8.9 but the code still targeted 0.7, so agentsniff no longer compiles on main (Rust security checks and the Docker build are red on 21cb385). Three changes finish the migration:

  • check_handler took Option<ConnectInfo<SocketAddr>>; axum 0.8 only accepts Option<T> for extractors that opt in. It now takes Result<ConnectInfo<SocketAddr>, ExtensionRejection> and converts with .ok(), so a router without connect info (the test routers) still works.
  • Path parameters use the 0.8 brace syntax: /check/{*rest} and /api/scan/{scan_id}. Under 0.8 the old :/* forms panic at router construction.

Verified locally with the locked 0.8.9 dependency set: cargo test --workspace --locked has no failures (gate 38, server 14), cargo fmt --check and clippy -D warnings clean. PR #37 is blocked on this; its CI runs against the merge ref and hits the same compile error.

@jaschadub
jaschadub merged commit 4f44460 into main Nov 5, 2026
1 check passed
@jaschadub
jaschadub deleted the fix/axum-0.8-gate branch November 8, 2026 22:27
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.

2 participants