From b01bb353e324165bf9c37e131452fb54a866d80c Mon Sep 17 00:00:00 2001 From: tottoto Date: Wed, 27 Mar 2024 00:55:43 +0900 Subject: [PATCH] disable unused futures feature Signed-off-by: tottoto --- Cargo.toml | 2 +- examples/Cargo.toml | 2 +- kube-client/Cargo.toml | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1cc879c7b..ebf69bb32 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -43,7 +43,7 @@ darling = "0.20.3" derivative = "2.1.1" either = "1.6.1" form_urlencoded = "1.2.0" -futures = "0.3.17" +futures = { version = "0.3.17", default-features = false } hashbrown = "0.14.0" home = "0.5.4" http = "1.1.0" diff --git a/examples/Cargo.toml b/examples/Cargo.toml index 60c1e4909..0ebfa16d2 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -26,7 +26,7 @@ tokio-util.workspace = true assert-json-diff.workspace = true garde = { version = "0.18.0", default-features = false, features = ["derive"] } anyhow.workspace = true -futures.workspace = true +futures = { workspace = true, features = ["async-await"] } jsonpath-rust.workspace = true kube = { path = "../kube", version = "^0.88.1", default-features = false, features = ["admission"] } kube-derive = { path = "../kube-derive", version = "^0.88.1", default-features = false } # only needed to opt out of schema diff --git a/kube-client/Cargo.toml b/kube-client/Cargo.toml index 2c5dc4293..2ce009163 100644 --- a/kube-client/Cargo.toml +++ b/kube-client/Cargo.toml @@ -50,7 +50,7 @@ http-body = { workspace = true, optional = true } http-body-util = { workspace = true, optional = true } either = { workspace = true, optional = true } thiserror.workspace = true -futures = { workspace = true, optional = true } +futures = { workspace = true, optional = true, features = ["std"] } pem = { workspace = true, optional = true } openssl = { workspace = true, optional = true } rustls = { workspace = true, optional = true } @@ -80,6 +80,7 @@ k8s-openapi= { workspace = true, features = [] } [dev-dependencies] kube = { path = "../kube", features = ["derive", "client", "ws"], version = "<1.0.0, >=0.61.0" } tempfile.workspace = true +futures = { workspace = true, features = ["async-await"] } tokio = { workspace = true, features = ["full"] } schemars.workspace = true tokio-test.workspace = true