mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-28 22:52:57 +00:00
Replace dep futures-util with helpers::FuturesResolver
(#765)
futures-util has too many dependencies and it contains a lot of code of which we only use `futures_util::stream::{FuturesUnordered, StreamExt}`. We don't even need most of the functionalities in `FuturesUnordered` as we just need the output of first future that either returns `Err(_)` or `Ok(Some(_))`. So we replace it with ou own homebrew solution (~80 loc) and it's easier to use. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
833684b095
commit
a13c01b769
5 changed files with 86 additions and 13 deletions
crates/binstalk
|
@ -19,7 +19,6 @@ compact_str = { version = "0.6.1", features = ["serde"] }
|
|||
crates_io_api = { version = "0.8.1", default-features = false }
|
||||
detect-targets = { version = "0.1.5", path = "../detect-targets" }
|
||||
either = "1.8.1"
|
||||
futures-util = { version = "0.3.26", default-features = false, features = ["std"] }
|
||||
home = "0.5.4"
|
||||
itertools = "0.10.5"
|
||||
jobslot = { version = "0.2.8", features = ["tokio"] }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue