mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-04 03:00:03 +00:00
Refactor: Move mod git
into binstalk-downloader
(#1285)
To speedup codegen time for `binstalk`, also fixed the docs.rs build for `binstalk-downloader`. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
6a1d317fde
commit
c57356e870
7 changed files with 14 additions and 7 deletions
|
@ -1,7 +1,5 @@
|
|||
pub(crate) mod cargo_toml_workspace;
|
||||
pub(crate) mod futures_resolver;
|
||||
#[cfg(feature = "git")]
|
||||
pub(crate) mod git;
|
||||
pub mod jobserver_client;
|
||||
pub mod remote;
|
||||
pub mod signal;
|
||||
|
@ -11,6 +9,9 @@ pub mod tasks;
|
|||
pub use binstalk_downloader::gh_api_client;
|
||||
pub(crate) use binstalk_downloader::{bytes, download};
|
||||
|
||||
#[cfg(feature = "git")]
|
||||
pub(crate) use binstalk_downloader::git;
|
||||
|
||||
pub(crate) fn is_universal_macos(target: &str) -> bool {
|
||||
["universal-apple-darwin", "universal2-apple-darwin"].contains(&target)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue