Skip to main content

Mountain/Binary/Build/PostHogPlugin/
Constants.rs

1#![allow(non_snake_case)]
2
3//! Build-time PostHog credentials baked from `.env.Land.PostHog` via
4//! `cargo:rustc-env`. `env!` always resolves at compile time so even a
5//! clean checkout builds without a populated `.env`.
6
7/// PostHog project token (`Authorize` in `.env.Land.PostHog`).
8pub const POSTHOG_API_KEY:&str = env!("Authorize");
9
10/// PostHog ingestion host (`Beam`). Defaults to EU Cloud; operators
11/// override per environment.
12pub const POSTHOG_HOST:&str = env!("Beam");
13
14/// Per-tier enable flag (`Report`). String-comparison gate avoids
15/// forking the binary per env value.
16pub const POSTHOG_ENABLED:&str = env!("Report");
17
18/// Optional pinned distinct-id seed (`Brand`). Empty → auto-generate
19/// per process; populated → pinned across every process in the same
20/// dev run for cross-restart correlation.
21pub const POSTHOG_DISTINCT_ID_SEED:&str = env!("Brand");