cargo-binstall/crates/binstalk
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
tests Refactor: Extract cargo_toml_workspace as a new crate (#1287) 2023-08-12 12:05:10 +00:00
Cargo.toml release: binstalk v0.24.0 (#1743) 2024-06-13 11:41:33 +00:00
LICENSE Rename lib to binstalk (#361) 2022-09-10 16:44:18 +10:00