mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-20 12:38:43 +00:00

* Add new dep zeroize * Use Zeroizing to avoid leaking the token * Optimize gh-auth-token Spawn it as a task, and only await it when using GhApiClient * Fix binstalk-git-repo-api unit tests
19 lines
553 B
Rust
19 lines
553 B
Rust
pub mod jobserver_client;
|
|
pub mod remote {
|
|
pub use binstalk_downloader::remote::*;
|
|
pub use url::ParseError as UrlParseError;
|
|
}
|
|
pub mod lazy_gh_api_client;
|
|
pub(crate) mod target_triple;
|
|
pub mod tasks;
|
|
|
|
pub(crate) use binstalk_downloader::download;
|
|
pub use binstalk_git_repo_api::gh_api_client;
|
|
|
|
pub(crate) use cargo_toml_workspace::{self, cargo_toml};
|
|
#[cfg(feature = "git")]
|
|
pub(crate) use simple_git as git;
|
|
|
|
pub(crate) fn is_universal_macos(target: &str) -> bool {
|
|
["universal-apple-darwin", "universal2-apple-darwin"].contains(&target)
|
|
}
|