cargo-binstall/crates/binstalk-registry
Tomas Olvecky dfa230f039
Use binary name when searching for artifacts (#1747)
* 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
..
src Use binary name when searching for artifacts (#1747) 2024-06-14 04:52:37 +00:00
Cargo.toml release: binstalk-downloader v0.11.2 (#1739) 2024-06-13 02:54:38 +00:00
LICENSE-APACHE Refactor: Extract new crate binstalk-registry (#1289) 2023-08-13 07:16:53 +00:00
LICENSE-MIT Refactor: Extract new crate binstalk-registry (#1289) 2023-08-13 07:16:53 +00:00