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:
Jiahao XU 2022-08-07 18:42:59 +10:00
parent 686cae6ae8
commit 065f62a625
No known key found for this signature in database
GPG key ID: 591C0B03040416D6
4 changed files with 21 additions and 24 deletions

View file

@ -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,