Optimize GhCrateMeta::find: use FuturesUnordered (#321)

* Optimize `GhCrateMeta::find` using `FuturesUnordered`
* Optimize `MultiFetcher`: Impl `with_capacity` use it in `resolve_inner` to avoid over-reservation
* Enable feature "std" of dep futures-util

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-08-27 19:56:43 +10:00 committed by GitHub
parent 4def4d08fd
commit 16b16c482c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 7 deletions

View file

@ -20,7 +20,7 @@ crates_io_api = { version = "0.8.0", default-features = false }
detect-targets = { version = "0.1.0", path = "../detect-targets" }
flate2 = { version = "1.0.24", default-features = false }
flock = { version = "0.1.0", path = "../flock" }
futures-util = { version = "0.3.23", default-features = false }
futures-util = { version = "0.3.23", default-features = false, features = ["std"] }
home = "0.5.3"
itertools = "0.10.3"
jobserver = "0.1.24"