Reduce public interface of binstalk (#1265)

To reduce amount of breaking changes.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2023-08-09 17:46:12 +10:00 committed by GitHub
parent 9c521d162a
commit 7f1ddd1dd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 10 deletions

View file

@ -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 git: Option<binstalk::helpers::git::GitUrl>,
pub git: Option<binstalk::drivers::GitUrl>,
/// Override Cargo.toml package manifest bin-dir.
#[clap(help_heading = "Overrides", long)]

View file

@ -5,4 +5,4 @@ pub use registry::{
};
#[cfg(feature = "git")]
pub use registry::GitRegistry;
pub use registry::{GitRegistry, GitUrl, GitUrlParseError};

View file

@ -15,7 +15,7 @@ use crate::{
};
#[cfg(feature = "git")]
use crate::helpers::git::{GitUrl, GitUrlParseError};
pub use crate::helpers::git::{GitUrl, GitUrlParseError};
mod vfs;

View file

@ -1,15 +1,16 @@
pub mod cargo_toml_workspace;
pub mod futures_resolver;
pub(crate) mod cargo_toml_workspace;
pub(crate) mod futures_resolver;
#[cfg(feature = "git")]
pub mod git;
pub(crate) mod git;
pub mod jobserver_client;
pub mod remote;
pub mod signal;
pub mod target_triple;
pub(crate) mod target_triple;
pub mod tasks;
pub use binstalk_downloader::{download, gh_api_client};
pub(crate) use binstalk_downloader::download;
pub use binstalk_downloader::gh_api_client;
pub fn is_universal_macos(target: &str) -> bool {
pub(crate) fn is_universal_macos(target: &str) -> bool {
["universal-apple-darwin", "universal2-apple-darwin"].contains(&target)
}

View file

@ -4,7 +4,7 @@ pub mod bins;
pub mod drivers;
pub mod errors;
pub mod fetchers;
pub mod fs;
pub(crate) mod fs;
pub mod helpers;
pub mod ops;