From 100609abee0715a12f1bf5688aa6b462b2b8c713 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Mon, 11 Sep 2023 14:56:01 -0700 Subject: [PATCH] fix(sync-only): remove futures dep when no async features are being used --- Cargo.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 848f763..410cde9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ categories = ["caching", "filesystem"] async-std = { version = "1.10.0", features = ["unstable"], optional = true } digest = "0.10.6" either = "1.6.1" -futures = "0.3.17" +futures = { version = "0.3.17", optional = true } hex = "0.4.3" memmap2 = { version = "0.5.8", optional = true } miette = "5.7.0" @@ -58,5 +58,6 @@ harness = false [features] default = ["async-std", "mmap"] mmap = ["memmap2", "libc"] +async-std = ["dep:async-std", "futures"] link_to = [] -tokio-runtime = ["tokio", "tokio-stream"] +tokio-runtime = ["tokio", "tokio-stream", "futures"]