mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 14:28:42 +00:00
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>
This commit is contained in:
parent
a220952fd6
commit
dfa230f039
5 changed files with 82 additions and 39 deletions
|
@ -71,7 +71,7 @@ impl ManifestVisitor {
|
|||
|
||||
// Load and parse manifest
|
||||
let mut manifest = Manifest::from_slice_with_metadata(&self.cargo_toml_content)?;
|
||||
|
||||
debug!("Manifest: {manifest:?}");
|
||||
// Checks vfs for binary output names
|
||||
manifest.complete_from_abstract_filesystem::<Value, _>(&self.vfs, None)?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue