From 8b35d97b4b4b166f89537634661990e3bcc9755a Mon Sep 17 00:00:00 2001 From: edef Date: Mon, 9 Oct 2023 21:06:02 +0000 Subject: feat(tvix/nix-compat): add nar::writer::async Change-Id: Ib962f889836659fd278beec461ee329b00e64ea5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9615 Autosubmit: edef Reviewed-by: flokli Tested-by: BuildkiteCI --- tvix/Cargo.nix | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'tvix/Cargo.nix') diff --git a/tvix/Cargo.nix b/tvix/Cargo.nix index 868620b76ad2..5409a5b767c8 100644 --- a/tvix/Cargo.nix +++ b/tvix/Cargo.nix @@ -2550,7 +2550,7 @@ rec { "unstable" = [ "futures-core/unstable" "futures-task/unstable" ]; "write-all-vectored" = [ "io" ]; }; - resolvedDefaultFeatures = [ "alloc" "async-await" "async-await-macro" "channel" "futures-channel" "futures-io" "futures-macro" "futures-sink" "io" "memchr" "sink" "slab" "std" ]; + resolvedDefaultFeatures = [ "alloc" "async-await" "async-await-macro" "channel" "default" "futures-channel" "futures-io" "futures-macro" "futures-sink" "io" "memchr" "sink" "slab" "std" ]; }; "fxhash" = rec { crateName = "fxhash"; @@ -4128,6 +4128,12 @@ rec { name = "data-encoding"; packageId = "data-encoding"; } + { + name = "futures-util"; + packageId = "futures-util"; + optional = true; + features = [ "io" ]; + } { name = "serde"; packageId = "serde"; @@ -4147,6 +4153,12 @@ rec { } ]; devDependencies = [ + { + name = "futures"; + packageId = "futures"; + usesDefaultFeatures = false; + features = [ "executor" ]; + } { name = "serde_json"; packageId = "serde_json"; @@ -4160,7 +4172,11 @@ rec { packageId = "test-generator"; } ]; - + features = { + "async" = [ "futures-util" ]; + "futures-util" = [ "dep:futures-util" ]; + }; + resolvedDefaultFeatures = [ "async" "futures-util" ]; }; "nom8" = rec { crateName = "nom8"; -- cgit 1.4.1