cargo-binstall/crates
Jiahao XU ab3e47c42b
Optimize Fetcher::find and fix quickinstall reporting (#579)
* Optimize `Fetcher::find`: Make it non-async to avoid boxing
   and return `AutoAbortJoinHandle<...>` instead.
   
   Since spawning a new task in tokio box the future anyway, boxing the
   returned future again in `Fetcher::find` merely adds unnecessary
   overheads.
* Optimize `QuickInstall::report`: Make it async fn instead of ret `JoinHandle`
   
   This provides several benefits:
    - On debug build, no task will be spawned
    - The calls to `self.stats_url()` can be evaluated in parallel.
    - The task now returns `()` so that the task spawned is smaller.
* Fix `QuickInstall::find`: `warn!` if quickinstall report fails

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-11-30 16:15:22 +13:00
..
bin Bump clap from 4.0.27 to 4.0.29 (#577) 2022-11-30 01:35:11 +00:00
binstalk Optimize Fetcher::find and fix quickinstall reporting (#579) 2022-11-30 16:15:22 +13:00
binstalk-downloader Optimize use of tokio::select!: Use biased selection (#580) 2022-11-30 16:05:52 +13:00
binstalk-manifests Bump serde from 1.0.147 to 1.0.148 (#572) 2022-11-29 13:39:33 +11:00
binstalk-types Bump serde from 1.0.147 to 1.0.148 (#572) 2022-11-29 13:39:33 +11:00
detect-targets release: detect-targets v0.1.3 (#555) 2022-11-22 08:31:43 +00:00
detect-wasi release: detect-wasi v1.0.0 (#332) 2022-09-04 13:45:28 +00:00
fs-lock release: fs-lock v0.1.0 (#339) 2022-09-04 16:04:52 +00:00
normalize-path release: normalize-path v0.2.0 (#509) 2022-11-04 17:30:21 +11:00