From cf4a3dc80ad45941758f881ea077a0f0d67903cd Mon Sep 17 00:00:00 2001 From: hatoo Date: Sat, 10 Feb 2024 15:04:52 +0900 Subject: [PATCH 1/3] reduce hyper features --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 1a0f565..eb3042e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ keywords = ["http", "proxy", "http-proxy"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -hyper = { version = "1.0.1", features = ["full"] } +hyper = { version = "1.0.1", features = ["http1", "server", "client"] } tokio = { version = "1.34.0", features = ["full"] } futures = "0.3.29" bytes = "1.5.0" From 22e75786f1f2f89e5e52bbd038e6d697e229af5d Mon Sep 17 00:00:00 2001 From: hatoo Date: Sat, 10 Feb 2024 15:11:37 +0900 Subject: [PATCH 2/3] reduce tokio features --- Cargo.lock | 10 ---------- Cargo.toml | 9 ++++++++- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index dbd527e..dbb67a5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1405,15 +1405,6 @@ dependencies = [ "serde", ] -[[package]] -name = "signal-hook-registry" -version = "1.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8229b473baa5980ac72ef434c4415e70c4b5e71b423043adb4ba059f89c99a1" -dependencies = [ - "libc", -] - [[package]] name = "slab" version = "0.4.9" @@ -1614,7 +1605,6 @@ dependencies = [ "num_cpus", "parking_lot", "pin-project-lite", - "signal-hook-registry", "socket2", "tokio-macros", "windows-sys 0.48.0", diff --git a/Cargo.toml b/Cargo.toml index eb3042e..94a67ef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,14 @@ keywords = ["http", "proxy", "http-proxy"] [dependencies] hyper = { version = "1.0.1", features = ["http1", "server", "client"] } -tokio = { version = "1.34.0", features = ["full"] } +tokio = { version = "1.34.0", features = [ + "macros", + "rt", + "rt-multi-thread", + "parking_lot", + "io-util", + "net", +] } futures = "0.3.29" bytes = "1.5.0" http-body-util = "0.1.0" From 3563ec59617ce97ad3f51560a8637d0c6b64a5ed Mon Sep 17 00:00:00 2001 From: hatoo Date: Sat, 10 Feb 2024 15:11:59 +0900 Subject: [PATCH 3/3] reorder --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 94a67ef..024341d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,6 @@ keywords = ["http", "proxy", "http-proxy"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -hyper = { version = "1.0.1", features = ["http1", "server", "client"] } tokio = { version = "1.34.0", features = [ "macros", "rt", @@ -23,6 +22,7 @@ tokio = { version = "1.34.0", features = [ "io-util", "net", ] } +hyper = { version = "1.0.1", features = ["http1", "server", "client"] } futures = "0.3.29" bytes = "1.5.0" http-body-util = "0.1.0"