cargo-binstall/crates/bin/src
Jiahao XU 39f175be04
Feature: Check for installed crates in cargo_install_v1_manifest (#582)
* Add & Impl new fn `CratesToml::collect_into_crates_versions`
   to iterate over crates listed in cargo_crates_v1, accessing their names
   and versions.
* Re-export `CompactString`, `Version` & `Url` in binstalk-manifests
   for convenience
* Fix `CratesToml::load_from_path`: Wrap `File` in `FileLock::new_shared`
   to avoid concurrent write while reading the file.
* Filter out installed crates in cargo_install_v1_metadata
* Make match in `filter_out_installed_crates` more explicit
* Add new test `cargo_crates_v1::test::test_loading`
* Optimize `CratesToml`: Use `Vec` instead of `BTreeMap`
  since we cannot simply call `BTreeMap::get` to find an entry for a crate
  anyway.
  This also accidentally fixed the CI.
* Impl new API `CratesToml::remove`
* Fix`CratesToml::append_to_path` by removing previous records of
   the crates that are just updated.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-12-03 15:25:41 +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 Feature: Check for installed crates in cargo_install_v1_manifest (#582) 2022-12-03 15:25:41 +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