cargo-binstall/crates/binstalk-fetchers/src
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
..
gh_crate_meta Fix clippy errors in cargo v1.73.0 (#1439) 2023-10-06 12:10:42 +00:00
common.rs Support private github repository (#1690) 2024-06-10 06:02:12 +00:00
futures_resolver.rs Refactor: Extract new crate binstalk-fetchers (#1291) 2023-08-14 03:20:34 +00:00
gh_crate_meta.rs Use binary name when searching for artifacts (#1747) 2024-06-14 04:52:37 +00:00
lib.rs Improve derbugg logging (#1738) 2024-06-13 00:25:24 +10:00
quickinstall.rs Check quickinstall signatures (#1382) 2023-09-23 08:35:49 +00:00
signing.rs Initial signing support (#1345) 2023-09-23 04:02:56 +00:00