mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-01 01:30:02 +00:00
feat: Impl support for alternative registries (#1184)
Fixed #1168 Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
d4ffc68129
commit
01a87ac606
18 changed files with 779 additions and 132 deletions
|
@ -8,6 +8,8 @@ use tracing::debug;
|
|||
mod progress_tracing;
|
||||
use progress_tracing::TracingProgress;
|
||||
|
||||
pub use gix::url::parse::Error as GitUrlParseError;
|
||||
|
||||
#[derive(Debug, ThisError)]
|
||||
#[non_exhaustive]
|
||||
pub enum GitError {
|
||||
|
@ -43,7 +45,7 @@ impl From<clone::checkout::main_worktree::Error> for GitError {
|
|||
pub struct GitUrl(Url);
|
||||
|
||||
impl FromStr for GitUrl {
|
||||
type Err = gix::url::parse::Error;
|
||||
type Err = GitUrlParseError;
|
||||
|
||||
fn from_str(s: &str) -> Result<Self, Self::Err> {
|
||||
Url::try_from(s).map(Self)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue