cargo-binstall/src/binstall.rs
Jiahao XU 92f4d0af95
Fix metafile updating: Update them in entry only
to avoid race condition.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-22 17:58:29 +10:00

27 lines
599 B
Rust

use std::collections::BTreeSet;
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: BTreeSet<String>,
pub cvs: metafiles::CrateVersionSource,
pub version_req: String,
pub target: String,
}