43138159b2
horizon-telemetry, shared by the launcher, the game and the ingest server: - consent.json in the game folder: four switches, all off until the player answers, a consent version that re-asks when what is collected changes, the answer's time, and a random install ID made at the first yes. - Payloads: perf summaries (percentiles + 14 frame-time buckets from a fixed-size Timings recorder), crash and bug reports, and benchmark reports carried as docs/benchmark-report.md defines them; size caps per kind. - A scrubber for user folders, user names, e-mail and IP addresses, UUIDs and caller-known private terms. - The outbox: only allowed kinds get in, daily caps, 200 items / 2 MiB. - zstd batches with bounded decoding; the uploader re-reads the consent and drops withdrawn items before connecting, backs off and caps batches a day. - tests/consent_gating.rs: a local mock server sees zero connections with the consent missing, outdated or withdrawn. No server is set (DEFAULT_ENDPOINT is None): nothing is sent yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
34 lines
1.0 KiB
TOML
34 lines
1.0 KiB
TOML
[workspace]
|
|
exclude = ["launcher"]
|
|
members = ["crates/horizon-core", "crates/horizon-world", "crates/voxel-kernels", "crates/horizon-client", "crates/horizon-assets", "crates/horizon-protocol", "crates/horizon-theme", "crates/horizon-prepare", "crates/horizon-telemetry", "xtask"]
|
|
resolver = "2"
|
|
|
|
[workspace.package]
|
|
edition = "2024"
|
|
license = "MIT"
|
|
rust-version = "1.85"
|
|
|
|
# Ports mirror vanilla's Java signatures, index loops and nested generic types
|
|
# one to one so they can be checked against the decompiled sources.
|
|
[workspace.lints.clippy]
|
|
too_many_arguments = "allow"
|
|
type_complexity = "allow"
|
|
needless_range_loop = "allow"
|
|
large_enum_variant = "allow"
|
|
|
|
# Line tables keep file:line in backtraces; full debug info made every
|
|
# example and test binary hundreds of megabytes and slow to link.
|
|
[profile.dev]
|
|
debug = "line-tables-only"
|
|
|
|
[profile.release]
|
|
lto = "thin"
|
|
codegen-units = 1
|
|
|
|
# Optimized but quick-to-link builds for iteration: cargo build --profile fast
|
|
[profile.fast]
|
|
inherits = "release"
|
|
lto = false
|
|
codegen-units = 16
|
|
incremental = true
|