cargo-binstall/crates/bin/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
..
args.rs Fix error reporting in main and move all arg validation into fn args::parse (#585) 2022-12-03 11:57:50 +00:00
bin_util.rs Enable coloring in console log (#528) 2022-11-13 22:45:19 +13:00
entry.rs Refactor, improvements and bugfix for resolution and installation process (#619) 2022-12-28 00:18:07 +00:00
install_path.rs Minor refactor and optimization (#543) 2022-11-19 20:00:27 +13:00
lib.rs Replace simplelog with tracing_subscriber::fmt (#525) 2022-11-11 12:05:09 +13:00
logging.rs Fix logging: Print error and continue on failure to flush logs (#584) 2022-12-04 00:15:15 +13:00
main.rs Fix error reporting in main and move all arg validation into fn args::parse (#585) 2022-12-03 11:57:50 +00:00
ui.rs Fix panic in ui::confirm on I/O error (#576) 2022-11-29 05:53:45 +00:00