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

@ -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)
}