diff --git a/Cargo.lock b/Cargo.lock index 3f35dfd..9ded6d6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -73,9 +73,9 @@ dependencies = [ [[package]] name = "axum" -version = "0.8.8" +version = "0.8.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b52af3cb4058c895d37317bb27508dccc8e5f2d39454016b297bf4a400597b8" +checksum = "31b698c5f9a010f6573133b09e0de5408834d0c82f8d7475a89fc1867a71cd90" dependencies = [ "axum-core", "bytes", @@ -193,6 +193,7 @@ dependencies = [ "thiserror 2.0.18", "tokio", "tokio-stream", + "tower-http 0.5.2", "utoipa", "uuid", "wiremock", @@ -1302,7 +1303,7 @@ dependencies = [ "tokio-rustls", "tokio-util", "tower", - "tower-http", + "tower-http 0.6.8", "tower-service", "url", "wasm-bindgen", @@ -1834,6 +1835,22 @@ dependencies = [ "tracing", ] +[[package]] +name = "tower-http" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e9cd434a998747dd2c4276bc96ee2e0c7a2eadf3cae88e52be55a05fa9053f5" +dependencies = [ + "bitflags", + "bytes", + "http", + "http-body", + "http-body-util", + "pin-project-lite", + "tower-layer", + "tower-service", +] + [[package]] name = "tower-http" version = "0.6.8" @@ -1959,9 +1976,9 @@ dependencies = [ [[package]] name = "uuid" -version = "1.23.0" +version = "1.23.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ac8b6f42ead25368cf5b098aeb3dc8a1a2c05a3eee8a9a1a68c640edbfc79d9" +checksum = "ddd74a9687298c6858e9b88ec8935ec45d22e8fd5e6394fa1bd4e99a87789c76" dependencies = [ "getrandom 0.4.2", "js-sys", diff --git a/Cargo.toml b/Cargo.toml index 8fb2d63..5ecb99c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ wiremock = "0.6" tokio = { version = "1", features = ["macros", "rt-multi-thread"] } [dependencies] -axum = "0.8.8" +axum = "0.8.9" utoipa = { version = "5.4.0", features = ["axum_extras"] } tokio = { version = "1", features = ["full"] } serde = { version = "1", features = ["derive"] } @@ -21,4 +21,5 @@ thiserror = "2.0.18" tokio-stream = "0.1" futures = "0.3" chrono = { version = "0.4.44", features = ["serde"] } -uuid = { version = "1", features = ["v4", "serde"] } \ No newline at end of file +uuid = { version = "1.23.1", features = ["v4", "serde"] } +tower-http = { version = "0.5", features = ["cors"] } \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index ee262c1..56cce32 100644 --- a/src/main.rs +++ b/src/main.rs @@ -32,7 +32,7 @@ async fn main() { .nest("/v1", routes::v1::router()) .with_state(state); - let addr = SocketAddr::from(([0, 0, 0, 0], 3000)); + let addr = SocketAddr::from(([0, 0, 0, 0], 3001)); println!("Server running on {}", addr); axum::serve(tokio::net::TcpListener::bind(addr).await.unwrap(), app)