diff --git a/Cargo.lock b/Cargo.lock index d9a4b72..a0df9fc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -130,9 +130,9 @@ checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" [[package]] name = "axum" -version = "0.4.8" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9f346c92c1e9a71d14fe4aaf7c2a5d9932cc4e5e48d8fb6641524416eb79ddd" +checksum = "5611d4977882c5af1c0f7a34d51b5d87f784f86912bb543986b014ea4995ef93" dependencies = [ "async-trait", "axum-core", @@ -142,6 +142,7 @@ dependencies = [ "http", "http-body", "hyper", + "itoa", "matchit", "memchr", "mime", @@ -160,9 +161,9 @@ dependencies = [ [[package]] name = "axum-core" -version = "0.1.2" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6dbcda393bef9c87572779cb8ef916f12d77750b27535dd6819fa86591627a51" +checksum = "95cd109b3e93c9541dcce5b0219dcf89169dcc58c1bebed65082808324258afb" dependencies = [ "async-trait", "bytes", @@ -174,9 +175,9 @@ dependencies = [ [[package]] name = "axum-extra" -version = "0.1.5" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5b6d79bc9c2975821d39c7df31ea766026beb9efe28c076a48cfd7d50f34f18" +checksum = "ff3819ded1be91d7ee2cd9f0466aa345cc70ba0b0035ed47e3eac6427f83b81a" dependencies = [ "axum", "bytes", @@ -191,9 +192,9 @@ dependencies = [ [[package]] name = "axum-macros" -version = "0.1.2" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5b2a9133b2658e684c8ea04157a8bd48dac7906a2eb884ffebfb051af123394" +checksum = "63bcb0d395bc5dd286e61aada9fc48201eb70e232f006f9d6c330c9db2f256f5" dependencies = [ "heck", "proc-macro2", @@ -1190,9 +1191,9 @@ checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f" [[package]] name = "matchit" -version = "0.4.6" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9376a4f0340565ad675d11fc1419227faf5f60cd7ac9cb2e7185a471f30af833" +checksum = "73cbba799671b762df5a175adf59ce145165747bb891505c43d09aefbbf38beb" [[package]] name = "md5" diff --git a/Cargo.toml b/Cargo.toml index 74a7af7..78ce032 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,9 +9,9 @@ repository = "https://github.com/Xe/site" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -axum = "0.4" -axum-macros = "0.1" -axum-extra = "0.1" +axum = "0.5" +axum-macros = "0.2" +axum-extra = "0.2" color-eyre = "0.6" chrono = "0.4" comrak = "0.12.1" diff --git a/src/main.rs b/src/main.rs index 8ff841f..ed35106 100644 --- a/src/main.rs +++ b/src/main.rs @@ -232,7 +232,7 @@ async fn main() -> Result<()> { let _ = std::fs::remove_file(&sockpath); let uds = UnixListener::bind(&sockpath)?; axum::Server::builder(ServerAccept { uds }) - .serve(app.into_make_service_with_connect_info::()) + .serve(app.into_make_service_with_connect_info::()) .await?; } Err(_) => {