mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-03 18:50:02 +00:00
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:
parent
a2e6709ed6
commit
a52ac3fc7a
2 changed files with 5 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue