cargo-binstall/crates/binstalk/src
Jiahao XU 6bdb26930e
Refactor, improvements and bugfix for resolution and installation process (#619)
* Refactor: Extract new mod `ops::resolve::resolution`
* Refactor: Extract new type `ResolutionFetch`
* Refactor: Extract new type `ResolutionSource`
* Improve `Resolution::print`: Provides more details on which crate
   is the resolution for.
* Make `Resolution::print` a pub fn
* Refactor: Extract new fn `ResolutionFetch::install`
* Refactor: Extract new async fn `ResolutionSource::install`
* Optimize `ResolutionSource::install` avoiding `OsStr::to_string_lossy`.
* Add new dep command-group v2.0.0 to binstalk with feat with-tokio
* Fix `ResolutionSource::install`: Use `AsyncCommandGroup::group_spawn`
   instead of `tokio::process::Command::spawn` to ensure all the processes
   spanwed by the `cargo` process can be terminated with one signal sent to
   the `cargo` process.
* Fix printing resolution: Make sure they are printed without interleaving
* Refactor `entry::install_crates`
* Improve dry-run output for `ResolutionSource::install`
* Refactor: Extract new fn `ResolutionFetch::print`
* Refactor: Extract new fn `ResolutionSource::print`
* Optimize `Resolution`: Box unit variant `Fetch`
* Improve formatting of `tokio::process::Command`
   Prints out sth like `cargo install ...` instead of the `Debug::fmt`.
* Improve dry-run output

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-12-28 00:18:07 +00:00
..
drivers Refactor binstalk-downloader APIs: Remove cancellation_future plus optimizations (#591) 2022-12-12 03:15:30 +00:00
fetchers Optimization: Box fut Remote::get_redirected_final_url in GhCrateMeta::find (#600) 2022-12-12 08:42:11 +00:00
helpers Optimization: Box fut Remote::get_redirected_final_url in GhCrateMeta::find (#600) 2022-12-12 08:42:11 +00:00
ops Refactor, improvements and bugfix for resolution and installation process (#619) 2022-12-28 00:18:07 +00:00
bins.rs More mionr optimizations (#553) 2022-11-22 19:35:16 +13:00
drivers.rs Rename lib to binstalk (#361) 2022-09-10 16:44:18 +10:00
errors.rs Fix BinstallError::CrateContext: Forward diagnostics of field CrateContextError::err (#586) 2022-12-03 12:12:04 +00:00
fetchers.rs Optimize Fetcher::find and fix quickinstall reporting (#579) 2022-11-30 16:15:22 +13:00
fs.rs Replace use of log with tracing (#527) 2022-11-13 21:45:37 +13:00
helpers.rs Refactor: Extract new crate binstalk-{signal, downloader} (#518) 2022-11-11 04:02:54 +00:00
lib.rs Refactor: Extract new crate binstalk-types plus other misc refactor and optimization (#535) 2022-11-17 13:46:27 +13:00
ops.rs Refactor, improvements and bugfix for resolution and installation process (#619) 2022-12-28 00:18:07 +00:00