1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! Update Check Module
//!
//! Checks for a newer version at start-up and, for a long-running server,
//! once a day after that. The check also tells the project how many installs
//! exist and for how long each one stays in use.
//!
//! # Privacy
//!
//! - The payload is a fixed set of fields: version, OS, architecture,
//! edition, the calling binary, a CI flag, and the SHA-256 of a random
//! per-install id. Nothing is derived from the machine, the user, or the
//! data directory.
//! - The id is generated once and stored in the per-user configuration
//! directory; an install that opted out never creates it.
//! - The full description, including what the receiving server stores, is
//! `docs/guides/CONFIGURATION.md`.
//!
//! # Disabling
//!
//! ```bash
//! export VELESDB_NO_UPDATE_CHECK=1
//! ```
//!
//! Or in config file:
//! ```toml
//! [update_check]
//! enabled = false
//! ```
// Docs intentionally reference product/arch identifiers.
pub use UpdateCheckConfig;
// Reason: re-exports the deprecated hash helper until the next major
pub use compute_instance_hash;
// Reason: re-exports the deprecated entry points until the next major
pub use ;