From 79238d05b9cb04c3e5c4bebcf1c3af89f01bf9d6 Mon Sep 17 00:00:00 2001 From: Henry Chen Date: Thu, 23 May 2024 17:08:22 +0800 Subject: [PATCH] deps: turn futures into an optional dependency --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b863664..bbef5fd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ exclude = ["/bin", "/.github"] rust-version = "1.75.0" [dependencies] -futures = "0.3.30" +futures = { version = "0.3.30", optional = true } indexmap = "2.2.6" tokio = { version = "1.37.0", features = ["io-util", "macros", "process", "rt"], optional = true } tracing = "0.1.40" @@ -39,7 +39,7 @@ default = ["creation-flags", "job-object", "kill-on-drop", "process-group", "pro std = ["dep:nix"] ## Frontend: TokioCommandWrap -tokio1 = ["dep:nix", "dep:tokio"] +tokio1 = ["dep:nix", "dep:futures", "dep:tokio"] ## Wrapper: Creation Flags creation-flags = ["dep:windows", "windows/Win32_System_Threading"]