diff --git a/Cargo.lock b/Cargo.lock index abb1be10..d93418e9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -411,13 +411,13 @@ dependencies = [ [[package]] name = "axum" -version = "0.7.9" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "edca88bc138befd0323b20752846e6587272d3b03b0343c8ea28a6f819e6e71f" +checksum = "6d6fd624c75e18b3b4c6b9caf42b1afe24437daaee904069137d8bab077be8b8" dependencies = [ - "async-trait", "axum-core", "bytes", + "form_urlencoded", "futures-util", "http 1.2.0", "http-body", @@ -445,11 +445,10 @@ dependencies = [ [[package]] name = "axum-core" -version = "0.4.5" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09f2bd6146b97ae3359fa0cc6d6b376d9539582c7b4220f041a33ec24c226199" +checksum = "df1362f362fd16024ae199c1970ce98f9661bf5ef94b9808fee734bc3698b733" dependencies = [ - "async-trait", "bytes", "futures-util", "http 1.2.0", @@ -2079,9 +2078,9 @@ dependencies = [ [[package]] name = "matchit" -version = "0.7.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e7465ac9959cc2b1404e8e2367b43684a6d13790fe23056cc8c6c5a6b7bcb94" +checksum = "47e1ffaa40ddd1f3ed91f717a33c8c0ee23fff369e3aa8772b9605cc1d22f4c3" [[package]] name = "memchr" diff --git a/Cargo.toml b/Cargo.toml index c3370090..511fd1ab 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -81,7 +81,7 @@ aws-lc-rs = { version = "1.8.1", features = ["bindgen"] } [dev-dependencies] assert_cmd = "2.0.14" -axum = { version = "0.7", features = ["http2"] } +axum = { version = "0.8.1", features = ["http2"] } bytes = "1.6" float-cmp = "0.10.0" http-mitm-proxy = "0.12.0" diff --git a/tests/tests.rs b/tests/tests.rs index 1a2161b6..d6b7ad08 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -102,7 +102,7 @@ async fn redirect(n: usize, is_relative: bool, limit: usize) -> bool { let (listener, port) = bind_port().await; let app = Router::new().route( - "/:n", + "/{n}", get(move |Path(x): Path| async move { Ok::<_, Infallible>(if x == n { tx.send(()).unwrap();