mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 14:28:42 +00:00
report to new stats server (with status) (#1912)
* docstrings for things that I was curious about * report to new stats server, with status * Arc<Self> needs a clone * fix stats url in docs * fix stats url handling
This commit is contained in:
parent
a88335d05b
commit
c8dec953cc
6 changed files with 71 additions and 11 deletions
|
@ -250,8 +250,8 @@ pub struct Args {
|
|||
/// Disable statistics collection on popular crates.
|
||||
///
|
||||
/// Strategy quick-install (can be disabled via --disable-strategies) collects
|
||||
/// statistics of popular crates by default, by sending the crate, version and
|
||||
/// target to https://warehouse-clerk-tmp.vercel.app/api/crate
|
||||
/// statistics of popular crates by default, by sending the crate, version, target
|
||||
/// and status to https://cargo-quickinstall-stats-server.fly.dev/record-install
|
||||
#[clap(help_heading = "Options", long, env = "BINSTALL_DISABLE_TELEMETRY")]
|
||||
pub(crate) disable_telemetry: bool,
|
||||
|
||||
|
@ -675,7 +675,7 @@ mod test {
|
|||
.unwrap()
|
||||
.to_string();
|
||||
assert!(
|
||||
long_help.ends_with(binstalk::QUICK_INSTALL_STATS_URL),
|
||||
long_help.ends_with(binstalk::QUICKINSTALL_STATS_URL),
|
||||
"{}",
|
||||
long_help
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue