cargo-binstall/src/binstall.rs
Jiahao XU 03c8295cd8
Optimize CratesToml: Use Vec instead of BTreeSet
for storing bins.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-26 13:43:30 +10:00

26 lines
562 B
Rust

use std::path::PathBuf;
use crate::{metafiles, DesiredTargets, PkgOverride};
mod resolve;
pub use resolve::*;
mod install;
pub use install::*;
pub struct Options {
pub no_symlinks: bool,
pub dry_run: bool,
pub version: Option<String>,
pub manifest_path: Option<PathBuf>,
pub cli_overrides: PkgOverride,
pub desired_targets: DesiredTargets,
}
/// MetaData required to update MetaFiles.
pub struct MetaData {
pub bins: Vec<String>,
pub cvs: metafiles::CrateVersionSource,
pub version_req: String,
pub target: String,
}