Parent
[>]
1 2 3 4 5 6 7use OnceLock; 8 9use Parser; 10use TcpListener; 11 12use crateResult; 13use crate; 14 15/// Package name, sourced from `Cargo.toml` at compile time. 16pub const PKG_NAME: &str = env!; 17 18/// Package version, sourced from `Cargo.toml` at compile time. 19pub const PKG_VERSION: &str = env!; 20 21/// Hostname used in breadcrumbs and clone URLs, set once from `--hostname`. 22static HOSTNAME: = new; 23 24/// SSH clone URL path prefix, set once from `--ssh-prefix`. 25static SSH_PREFIX: = new; 26 27/// Base URL path prefix for reverse proxy support, set once from `--base-url`. 28static BASE_URL: = new; 29 30/// Returns the configured hostname, or `"index"` if none was provided. 31 34 35/// Returns the configured SSH prefix, or an empty string if none was provided. 36 39 40/// Returns the configured base URL path prefix, or an empty string if none was 41/// provided. 42 45 46 47async