cargo-binstall/crates/bin
Jiahao XU c5d0b84aa6
Perform startup/init code eagerly in entry::install_crates (#880)
The startup/init code in `entry::install_crates` performs a lot of blocking operations, from testing if dir exists to reading from files and there is no `.await` in there until after the startup.

There are also a few cases where `block_in_place` should be called (e.g. loading manifests, loading TLS certificates) but is missing.

Most of the `Args` passed to `entry::install_crates` are actually consumed before the first `.await` point, so performing startup/init code eagerly would make the generated future much smaller, reduce codegen and also makes it easier to optimize.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-03-11 15:06:46 +11:00
..
src Perform startup/init code eagerly in entry::install_crates (#880) 2023-03-11 15:06:46 +11:00
build.rs Fix crates/bin/build.rs: Rerun build.rs if manifest.rc and windows.manifest changed (#575) 2022-11-29 18:31:59 +13:00
Cargo.toml Bump file-format from 0.14.0 to 0.15.0 (#872) 2023-03-07 02:44:31 +00:00
LICENSE Split crates and clean up structure of codebase (#294) 2022-08-20 11:24:12 +00:00
manifest.rc Split crates and clean up structure of codebase (#294) 2022-08-20 11:24:12 +00:00
release.toml Fix release PR template (#336) 2022-09-04 15:19:17 +00:00
windows.manifest release: cargo-binstall v0.20.1 (#793) 2023-02-12 15:46:27 +11:00