cargo-binstall/crates
Jiahao XU bdb4b2070d
Minor optimization ()
* Optimization: Rm `debug!` in `find_version`
   printing all version iterated obviously doesn't help much in debugging
   in the problem but rather just confusing.
   
   Also this makes it hard for the compiler to optimize the iterators.
* Use let-else in `ManifestVisitor`
* Optimize `BinFile::preview_{bin, link}` for zero-copy
   Return `impl Display` that lazily format instead of allocating a `String`
* Optimize `infer_bin_dir_template`: Generate dir lazily
* Optimize `find_version`: Lazily clone `version_req` only on err
* Refactor `find_version`: Use `bool::then_some`
* Add dep either v1.8.0 to binstalk
* Optimize `GhCrateMeta::find`: Avoid cloning and `Vec` creation
   by using `Either`
* Optimize `ops::install::install_from_package`: Make it a regular fn
   instead of async fn since it does not `.await` on any async fn.
* Optimize `QuickInstall`: Rm field `target`
   since `Arc<Data>` already contains that field.
* Optimize `Fetcher`s: Extract new struct `TargetData`
   so that `Data` can be shared by all fetchers, regardless of the target.
* Optimize `QuickInstall`: Rm unused field `data`
* Optimize `Resolution::print`: Replace branching with conditional move

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-11-21 10:32:46 +13:00
..
bin Minor refactor and optimization () 2022-11-19 20:00:27 +13:00
binstalk Minor optimization () 2022-11-21 10:32:46 +13:00
binstalk-downloader Bump reqwest from 0.11.12 to 0.11.13 () 2022-11-20 00:21:50 +11:00
binstalk-manifests Optimizations plus bug fix () 2022-11-17 23:59:35 +00:00
binstalk-types Refactor: Extract new crate binstalk-types plus other misc refactor and optimization () 2022-11-17 13:46:27 +13:00
detect-targets Use CARGO env variable if present () 2022-10-02 04:52:25 +13:00
detect-wasi release: detect-wasi v1.0.0 () 2022-09-04 13:45:28 +00:00
fs-lock release: fs-lock v0.1.0 () 2022-09-04 16:04:52 +00:00
normalize-path release: normalize-path v0.2.0 () 2022-11-04 17:30:21 +11:00