// SPDX-FileCopyrightText: 2026 Stan Grams // // SPDX-License-Identifier: GPL-2.0-or-later //! Configuration types shared by `trx-server`, `trx-client` and //! `trx-configurator`. //! //! Keeping the structs, the loader and the validators in one crate means the //! setup wizard checks a config with exactly the same code the binaries load //! it with, so the two can never drift apart. pub mod client; pub mod file; pub mod server; pub mod shared; pub mod url; pub use client::ClientConfig; pub use file::{ConfigError, ConfigFile}; pub use server::ServerConfig; pub use shared::{validate_log_level, validate_tokens}; pub use url::{parse_audio_url, parse_remote_url, RemoteEndpoint};