cargo-binstall/crates/binstalk-registry/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
..
common.rs Improve derbugg logging (#1738) 2024-06-13 00:25:24 +10:00
crates_io_registry.rs Improve derbugg logging (#1738) 2024-06-13 00:25:24 +10:00
git_registry.rs Improve derbugg logging (#1738) 2024-06-13 00:25:24 +10:00
lib.rs Speedup ci (#1724) 2024-06-11 00:12:44 +10:00
sparse_registry.rs Improve derbugg logging (#1738) 2024-06-13 00:25:24 +10:00
vfs.rs dep: Upgrade transitive dependencies (#1651) 2024-03-22 05:24:21 +00:00
visitor.rs Use binary name when searching for artifacts (#1747) 2024-06-14 04:52:37 +00:00