mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 22:30:03 +00:00
Refactor: Extract new crate binstalk-registry
(#1289)
To speedup codegen of `binstalk` and enable it to be reused. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
6c801a97ae
commit
623f7ff4ed
20 changed files with 373 additions and 127 deletions
|
@ -8,10 +8,10 @@ use std::{
|
|||
};
|
||||
|
||||
use binstalk::{
|
||||
drivers::Registry,
|
||||
helpers::remote,
|
||||
manifests::cargo_toml_binstall::PkgFmt,
|
||||
ops::resolve::{CrateName, VersionReqExt},
|
||||
registry::Registry,
|
||||
};
|
||||
use clap::{error::ErrorKind, CommandFactory, Parser, ValueEnum};
|
||||
use compact_str::CompactString;
|
||||
|
@ -102,7 +102,7 @@ pub struct Args {
|
|||
///
|
||||
/// This option cannot be used with `--manifest-path`.
|
||||
#[clap(help_heading = "Overrides", long, conflicts_with("manifest_path"))]
|
||||
pub(crate) git: Option<binstalk::drivers::GitUrl>,
|
||||
pub(crate) git: Option<binstalk::registry::GitUrl>,
|
||||
|
||||
/// Override Cargo.toml package manifest bin-dir.
|
||||
#[clap(help_heading = "Overrides", long)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue