From 11bd59f794811e11e48ef8de4db59035434f9da6 Mon Sep 17 00:00:00 2001 From: Sizhe Zhao Date: Sat, 5 Apr 2025 19:42:19 +0800 Subject: [PATCH] fix: cargo-auditable build error Use `futures-lite` instead of `dep:futures-lite` in gix-packetline and gix-protocol. See-Also: https://github.com/rust-secure-code/cargo-auditable/issues/124 --- gix-packetline/Cargo.toml | 3 ++- gix-protocol/Cargo.toml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gix-packetline/Cargo.toml b/gix-packetline/Cargo.toml index 1aaa73e628e..35929a31b99 100644 --- a/gix-packetline/Cargo.toml +++ b/gix-packetline/Cargo.toml @@ -24,7 +24,8 @@ default = [] ## If set, all IO will become blocking. The same types will be used preventing side-by-side usage of blocking and non-blocking IO. blocking-io = [] ## Implement IO traits from `futures-io`. -async-io = ["dep:futures-io", "dep:futures-lite", "dep:pin-project-lite"] +# no `dep:` for futures-lite (https://github.com/rust-secure-code/cargo-auditable/issues/124) +async-io = ["dep:futures-io", "futures-lite", "dep:pin-project-lite"] #! ### Other ## Data structures implement `serde::Serialize` and `serde::Deserialize`. diff --git a/gix-protocol/Cargo.toml b/gix-protocol/Cargo.toml index 09a728e7d29..0c5c9e237ae 100644 --- a/gix-protocol/Cargo.toml +++ b/gix-protocol/Cargo.toml @@ -30,11 +30,12 @@ blocking-client = [ "fetch" ] ## As above, but provides async implementations instead. +# no `dep:` for futures-lite (https://github.com/rust-secure-code/cargo-auditable/issues/124) async-client = [ "gix-transport/async-client", "dep:async-trait", "dep:futures-io", - "dep:futures-lite", + "futures-lite", "handshake", "fetch" ]