mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-03 17:42:56 +00:00
Use VersionReq
for Options::version_req
and update usage of
`CrateName` in `binstall::install` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
686cae6ae8
commit
065f62a625
4 changed files with 21 additions and 24 deletions
src
|
@ -1,6 +1,6 @@
|
|||
use std::path::PathBuf;
|
||||
|
||||
use compact_str::CompactString;
|
||||
use semver::VersionReq;
|
||||
|
||||
use crate::{metafiles::binstall_v1::MetaData, DesiredTargets, PkgOverride};
|
||||
|
||||
|
@ -14,7 +14,7 @@ pub struct Options {
|
|||
pub no_symlinks: bool,
|
||||
pub dry_run: bool,
|
||||
pub force: bool,
|
||||
pub version: Option<CompactString>,
|
||||
pub version_req: Option<VersionReq>,
|
||||
pub manifest_path: Option<PathBuf>,
|
||||
pub cli_overrides: PkgOverride,
|
||||
pub desired_targets: DesiredTargets,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue