diff --git a/Cargo.lock b/Cargo.lock index 8e40508d..8f8d753b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -56,6 +56,12 @@ dependencies = [ "either", ] +[[package]] +name = "arc-swap" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bddcadddf5e9015d310179a59bb28c4d4b9920ad0f11e8e14dbadf654890c9a6" + [[package]] name = "arrayvec" version = "0.5.2" @@ -146,6 +152,26 @@ dependencies = [ "tower-service", ] +[[package]] +name = "axum-server" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8456dab8f11484979a86651da8e619b355ede5d61a160755155f6c344bd18c47" +dependencies = [ + "arc-swap", + "bytes", + "futures-util", + "http", + "http-body", + "hyper", + "pin-project-lite", + "rustls", + "rustls-pemfile 1.0.1", + "tokio", + "tokio-rustls", + "tower-service", +] + [[package]] name = "base-x" version = "0.2.11" @@ -2090,6 +2116,15 @@ dependencies = [ "base64", ] +[[package]] +name = "rustls-pemfile" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0864aeff53f8c05aa08d86e5ef839d3dfcf07aeba2db32f12db0ef716e87bd55" +dependencies = [ + "base64", +] + [[package]] name = "rustversion" version = "1.0.11" @@ -2764,6 +2799,7 @@ dependencies = [ "aquatic_udp_protocol", "async-trait", "axum", + "axum-server", "binascii", "chrono", "config", @@ -3037,7 +3073,7 @@ dependencies = [ "multipart", "percent-encoding", "pin-project", - "rustls-pemfile", + "rustls-pemfile 0.2.1", "scoped-tls", "serde", "serde_json", diff --git a/Cargo.toml b/Cargo.toml index 8ddefe78..434b4cac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -59,6 +59,7 @@ async-trait = "0.1" aquatic_udp_protocol = "0.2" uuid = { version = "1", features = ["v4"] } axum = "0.6.1" +axum-server = { version = "0.4.4", features = ["tls-rustls"] } [dev-dependencies] mockall = "0.11"