Skip to main content

nros/
retired_env.rs

1// @generated by scripts/gen-knob-registry.py from
2// packages/tooling/nros-zephyr-build/knobs.toml -- do not edit: each pair is
3// a `run:` entry in an `[[env]]` row's `retired` list, and the gate
4// `just check knob-registry` holds this file equal to the render.
5
6//! The RETIRED runtime env aliases and their canonical names.
7//!
8//! ONE table, read by the hosted env reader (`crate::env`). It was shared by
9//! two readers until they were merged.
10//! A set retired name is [`BootConfigError::RetiredEnvVar`], never a silent
11//! skip: an ignored `ZENOH_LOCATOR` dials the backend's DEFAULT router, which
12//! reads as "no delivery" rather than as a configuration mistake.
13//!
14//! The gate `check-retired-runtime-aliases` refuses any other tracked reader
15//! of these names, so this file is the one place they are spelled in code.
16//!
17//! [`BootConfigError::RetiredEnvVar`]: nros_node::BootConfigError::RetiredEnvVar
18
19/// `(retired, replacement)` pairs, in the order the readers check them.
20pub const RETIRED_ENV_VARS: &[(&str, &str)] = &[
21    (
22        "NROS_CYCLONE_MATCH_TIMEOUT_MS",
23        "NROS_CYCLONEDDS_MATCH_TIMEOUT_MS",
24    ),
25    (
26        "NROS_RMW_CYCLONEDDS_SKIP_PREFIX",
27        "NROS_CYCLONEDDS_SKIP_PREFIX",
28    ),
29    ("ZENOH_LOCATOR", "NROS_LOCATOR"),
30    ("ZENOH_MODE", "NROS_SESSION_MODE"),
31    ("XRCE_SERIAL_BAUD", "NROS_XRCE_SERIAL_BAUD"),
32];