cargo-binstall/crates
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
..
bin Feature: Check for installed crates in cargo_install_v1_manifest (#582) 2022-12-03 15:25:41 +00:00
binstalk Fix BinstallError::CrateContext: Forward diagnostics of field CrateContextError::err (#586) 2022-12-03 12:12:04 +00:00
binstalk-downloader Optimize use of tokio::select!: Use biased selection (#580) 2022-11-30 16:05:52 +13:00
binstalk-manifests Feature: Check for installed crates in cargo_install_v1_manifest (#582) 2022-12-03 15:25:41 +00:00
binstalk-types Bump serde from 1.0.147 to 1.0.148 (#572) 2022-11-29 13:39:33 +11:00
detect-targets release: detect-targets v0.1.3 (#555) 2022-11-22 08:31:43 +00:00
detect-wasi release: detect-wasi v1.0.0 (#332) 2022-09-04 13:45:28 +00:00
fs-lock release: fs-lock v0.1.0 (#339) 2022-09-04 16:04:52 +00:00
normalize-path release: normalize-path v0.2.0 (#509) 2022-11-04 17:30:21 +11:00