mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-15 15:16:37 +00:00
Add a --bin argument to mirror cargo install --bin.
This commit is contained in:
parent
ea65a39d2d
commit
75b3ef44fe
6 changed files with 49 additions and 6 deletions
|
@ -87,11 +87,16 @@ impl ResolutionFetch {
|
|||
current_version: self.new_version,
|
||||
source: self.source,
|
||||
target: self.fetcher.target().to_compact_string(),
|
||||
bins: self
|
||||
.bin_files
|
||||
.into_iter()
|
||||
.map(|bin| bin.base_name)
|
||||
.collect(),
|
||||
bins: opts
|
||||
.bins
|
||||
.as_ref()
|
||||
.map(|bins| bins.iter().cloned().map(Into::into).collect())
|
||||
.unwrap_or_else(|| {
|
||||
self.bin_files
|
||||
.into_iter()
|
||||
.map(|bin| bin.base_name)
|
||||
.collect()
|
||||
}),
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue