cargo-binstall/crates
Tomas Olvecky dfa230f039
Use binary name when searching for artifacts ()
* Use binary name when searching for artifacts

When there is a single binary declared in the manifest and
it differs from the package name, add it to the list of handles
used for pre-built artifact fetching.

* Simplify `binary_name` assignment with a `match`

* Add e2e test

* Only attempt to use the binary name with `GhCrateMeta` fetcher

* Avoid too much over-allocating.

Technically it should also check if gh-crate-meta resolver is enabled, but it is unlikely for it to be disabled and overallocating for extra n-target should be fine, it is an improvement over doubling the space allocated if the binary_name is Some.

* Fix fmt in crates/binstalk/src/ops/resolve.rs

---------

Co-authored-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-06-14 04:52:37 +00:00
..
atomic-file-install release: atomic-file-install v1.0.4 () 2024-06-08 03:41:59 +00:00
bin release: binstalk v0.24.0 () 2024-06-13 11:41:33 +00:00
binstalk Use binary name when searching for artifacts () 2024-06-14 04:52:37 +00:00
binstalk-bins release: atomic-file-install v1.0.4 () 2024-06-08 03:41:59 +00:00
binstalk-downloader release: binstalk-downloader v0.11.2 () 2024-06-13 02:54:38 +00:00
binstalk-fetchers Use binary name when searching for artifacts () 2024-06-14 04:52:37 +00:00
binstalk-git-repo-api release: binstalk-git-repo-api v0.1.1 () 2024-06-13 03:41:38 +00:00
binstalk-manifests build(deps): bump the deps group with 2 updates () 2024-05-18 03:28:12 +00:00
binstalk-registry Use binary name when searching for artifacts () 2024-06-14 04:52:37 +00:00
binstalk-types release: binstalk-types v0.7.0 () 2024-02-03 03:52:00 +00:00
cargo-toml-workspace build(deps): bump the deps group with 2 updates () 2024-05-18 03:28:12 +00:00
detect-targets release: detect-targets v0.1.17 () 2024-05-03 00:29:20 +00:00
detect-wasi Bump tempfile from 3.4.0 to 3.5.0 () 2023-03-30 02:49:38 +00:00
fs-lock release: fs-lock v0.1.3 () 2024-03-09 03:33:53 +00:00
normalize-path release: normalize-path v0.2.1 () 2023-06-26 08:22:39 +00:00