mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 22:30:03 +00:00
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:
parent
9c521d162a
commit
7f1ddd1dd7
5 changed files with 11 additions and 10 deletions
|
@ -5,4 +5,4 @@ pub use registry::{
|
|||
};
|
||||
|
||||
#[cfg(feature = "git")]
|
||||
pub use registry::GitRegistry;
|
||||
pub use registry::{GitRegistry, GitUrl, GitUrlParseError};
|
||||
|
|
|
@ -15,7 +15,7 @@ use crate::{
|
|||
};
|
||||
|
||||
#[cfg(feature = "git")]
|
||||
use crate::helpers::git::{GitUrl, GitUrlParseError};
|
||||
pub use crate::helpers::git::{GitUrl, GitUrlParseError};
|
||||
|
||||
mod vfs;
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue