From a6dbda14d135f7198bc951928899850caa9d2ede Mon Sep 17 00:00:00 2001 From: tottoto Date: Fri, 29 Sep 2023 00:20:45 +0900 Subject: [PATCH] chore(dependencies): reduce default dependencies (#3327) --- Cargo.toml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 961b50e7ad..4c6ac0e9f7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,18 +26,18 @@ futures-util = { version = "0.3", default-features = false } http = "0.2" http-body = "=1.0.0-rc.2" http-body-util = { version = "=0.1.0-rc.3", optional = true } -httpdate = "1.0" httparse = "1.8" h2 = { version = "0.3.9", optional = true } itoa = "1" tracing = { version = "0.1", default-features = false, features = ["std"] } pin-project-lite = "0.2.4" tokio = { version = "1", features = ["sync"] } -want = "0.3" # Optional +httpdate = { version = "1.0", optional = true } libc = { version = "0.2", optional = true } +want = { version = "0.3", optional = true } [dev-dependencies] futures-util = { version = "0.3", default-features = false, features = ["alloc"] } @@ -78,8 +78,8 @@ http1 = [] http2 = ["dep:h2"] # Client/Server -client = [] -server = [] +client = ["dep:want"] +server = ["dep:httpdate"] # C-API support (currently unstable (no semver)) ffi = ["dep:libc", "dep:http-body-util"]