Parent
[>]
1//! Global application configuration set once at startup. 2//! 3//! Values are stored in `OnceLock` statics and accessed via the corresponding 4//! getter functions. All setters accept `Option` and silently skip `None`. 5 6use OnceLock; 7 8pub const PKG_NAME: &str = env!; 9pub const PKG_VERSION: &str = env!; 10 11static HOSTNAME: = new; 12static SSH_PREFIX: = new; 13static BASE_URL: = new; 14static FAVICON: = new; 15 16/// Returns the configured hostname, or `"index"` if none was provided. 17 20 21/// Returns the configured SSH prefix, or an empty string if none was provided. 22 25 26/// Returns the configured base URL path prefix, or an empty string if none was 27/// provided. 28 31 32/// Returns the favicon bytes loaded at startup. 33 36 37 42 43 48 49 54 55