From dc98fbb2f514e640a81e7f03529f4b29a5515225 Mon Sep 17 00:00:00 2001 From: Jose Quintana Date: Sat, 23 Oct 2021 21:10:17 +0200 Subject: [PATCH] chore: update dependencies 23.10.2021 --- Cargo.lock | 16 ++++++++-------- Cargo.toml | 47 +++++++++++++++++++++++++---------------------- 2 files changed, 33 insertions(+), 30 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 90dd536..0ad7384 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -315,9 +315,9 @@ dependencies = [ [[package]] name = "h2" -version = "0.3.6" +version = "0.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c06815895acec637cd6ed6e9662c935b866d20a106f8361892893a7d9234964" +checksum = "7fd819562fcebdac5afc5c113c3ec36f902840b70fd4fc458799c8ce4607ae55" dependencies = [ "bytes", "fnv", @@ -393,9 +393,9 @@ dependencies = [ [[package]] name = "http-body" -version = "0.4.3" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "399c583b2979440c60be0821a6199eca73bc3c8dcd9d070d75ac726e2c6186e5" +checksum = "1ff4f84919677303da5f147645dbea6b1881f368d03ac84e1dc09031ebd7b2c6" dependencies = [ "bytes", "http", @@ -422,9 +422,9 @@ checksum = "02296996cb8796d7c6e3bc2d9211b7802812d36999a51bb754123ead7d37d026" [[package]] name = "hyper" -version = "0.14.13" +version = "0.14.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15d1cfb9e4f68655fa04c01f59edb405b6074a0f7118ea881e5026e4a1cd8593" +checksum = "2b91bb1f221b6ea1f1e4371216b70f40748774c2fb5971b450c07773fb92d26b" dependencies = [ "bytes", "futures-channel", @@ -507,9 +507,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.104" +version = "0.2.105" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b2f96d100e1cf1929e7719b7edb3b90ab5298072638fccd77be9ce942ecdfce" +checksum = "869d572136620d55835903746bcb5cdc54cb2851fd0aeec53220b4bb65ef3013" [[package]] name = "listenfd" diff --git a/Cargo.toml b/Cargo.toml index d3b62d0..6adfe49 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,11 +10,14 @@ keywords = [ "static-web-server", "file-server", "http-server", - "linux", - "darwin", + "docker-image", "musl-libc", + "x86", "x86-64", - "docker-image" + "arm64", + "linux", + "darwin", + "windows", ] categories = ["network-programming", "web-programming::http-server"] edition = "2021" @@ -25,28 +28,28 @@ name = "static-web-server" path = "src/bin/server.rs" [dependencies] -hyper = { version = "0.14", features = ["stream", "http1", "http2", "tcp", "server"] } -tokio = { version = "1", features = ["rt-multi-thread", "macros", "fs", "io-util"], default-features = false } -tokio-util = { version = "0.6", features = ["io"] } +anyhow = "1.0" async-compression = { version = "0.3", features = ["brotli", "deflate", "gzip", "tokio"] } +bcrypt = "0.10" +bytes = "1.0" +ctrlc = { version = "3.1", features = ["termination"] } +futures-util = { version = "0.3", default-features = false, features = ["sink"] } headers = { git = "https://github.com/joseluisq/hyper-headers.git", branch = "headers_encoding" } http = "0.2" -futures-util = { version = "0.3", default-features = false, features = ["sink"] } -anyhow = "1.0" -tracing = "0.1" -tracing-subscriber = "0.2" +humansize = "1.1" +hyper = { version = "0.14", features = ["stream", "http1", "http2", "tcp", "server"] } +listenfd = "0.3" mime_guess = "2.0" -bytes = "1.0" -percent-encoding = "2.1" -structopt = { version = "0.3", default-features = false } num_cpus = { version = "1.13" } +percent-encoding = "2.1" pin-project = "1.0" -tokio-rustls = { version = "0.22" } -humansize = "1.1" +structopt = { version = "0.3", default-features = false } time = "0.1" -listenfd = "0.3" -ctrlc = { version = "3.1", features = ["termination"] } -bcrypt = "0.10" +tokio = { version = "1", features = ["rt-multi-thread", "macros", "fs", "io-util"], default-features = false } +tokio-rustls = { version = "0.22" } +tokio-util = { version = "0.6", features = ["io"] } +tracing = "0.1" +tracing-subscriber = "0.2" [target.'cfg(all(target_env = "musl", target_pointer_width = "64"))'.dependencies.jemallocator] version = "0.3" @@ -55,10 +58,10 @@ version = "0.3" bytes = "1.0" [profile.release] -opt-level = 3 -lto = "fat" codegen-units = 1 -panic = "abort" debug = false -rpath = false debug-assertions = false +lto = "fat" +opt-level = 3 +panic = "abort" +rpath = false -- libgit2 1.7.2