Use CompactString for Options::version_req

which is unlikely to be larger than 24 bytes.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-08-02 22:26:24 +10:00
parent a2e6709ed6
commit a52ac3fc7a
No known key found for this signature in database
GPG key ID: 591C0B03040416D6
2 changed files with 5 additions and 2 deletions

View file

@ -1,5 +1,7 @@
use std::path::PathBuf;
use compact_str::CompactString;
use crate::{metafiles::binstall_v1::MetaData, DesiredTargets, PkgOverride};
mod resolve;
@ -11,7 +13,7 @@ pub use install::*;
pub struct Options {
pub no_symlinks: bool,
pub dry_run: bool,
pub version: Option<String>,
pub version: Option<CompactString>,
pub manifest_path: Option<PathBuf>,
pub cli_overrides: PkgOverride,
pub desired_targets: DesiredTargets,