mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-17 08:06:38 +00:00
Add new option --disable-quick-install-stats
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
6df132a9d5
commit
a908d3a6dd
6 changed files with 33 additions and 3 deletions
|
@ -9,3 +9,5 @@ pub use binstalk_fetchers as fetchers;
|
|||
pub use binstalk_registry as registry;
|
||||
pub use binstalk_types as manifests;
|
||||
pub use detect_targets::{get_desired_targets, DesiredTargets, TARGET};
|
||||
|
||||
pub use fetchers::QUICK_INSTALL_STATS_URL;
|
||||
|
|
|
@ -55,4 +55,5 @@ pub struct Options {
|
|||
pub registry: Registry,
|
||||
|
||||
pub signature_policy: SignaturePolicy,
|
||||
pub disable_quick_install_stats: bool,
|
||||
}
|
||||
|
|
|
@ -176,7 +176,9 @@ async fn resolve_inner(
|
|||
}
|
||||
|
||||
for fetcher in handles {
|
||||
fetcher.clone().report_to_upstream();
|
||||
if !opts.disable_quick_install_stats {
|
||||
fetcher.clone().report_to_upstream();
|
||||
}
|
||||
match AutoAbortJoinHandle::new(fetcher.clone().find())
|
||||
.flattened_join()
|
||||
.await
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue