use once_cell::sync::Lazy; #[cfg(feature = "has-storage")] use std::time::Duration; pub const LOGO: &str = " .d8888b. 888 8888888b. 888888b. d88P Y88b 888 888 'Y88b 888 '88b Y88b. 888 888 888 888 .88P 'Y888b. 888 888 888d888 888d888 .d88b. 8888b. 888 888 888 8888888K. 'Y88b. 888 888 888P' 888P' d8P Y8b '88b 888 888 888 888 'Y88b '888 888 888 888 888 88888888 .d888888 888 888 888 888 888 Y88b d88P Y88b 888 888 888 Y8b. 888 888 888 888 .d88P 888 d88P 'Y8888P' 'Y88888 888 888 'Y8888 'Y888888 888 8888888P' 8888888P' "; /// The publicly visible name of the server #[cfg(feature = "has-storage")] pub const PKG_NAME: &str = "surrealdb"; /// The publicly visible user-agent of the command-line tool pub const SERVER_AGENT: &str = concat!("SurrealDB ", env!("CARGO_PKG_VERSION")); /// The public endpoint for the administration interface #[cfg(feature = "has-storage")] pub const APP_ENDPOINT: &str = "https://surrealdb.com/app"; /// How many concurrent tasks can be handled in a WebSocket #[cfg(feature = "has-storage")] pub const MAX_CONCURRENT_CALLS: usize = 24; /// Specifies the frequency with which ping messages should be sent to the client #[cfg(feature = "has-storage")] pub const WEBSOCKET_PING_FREQUENCY: Duration = Duration::from_secs(5); /// The version identifier of this build pub static PKG_VERSION: Lazy = Lazy::new(|| match option_env!("SURREAL_BUILD_METADATA") { Some(metadata) if !metadata.trim().is_empty() => { let version = env!("CARGO_PKG_VERSION"); format!("{version}+{metadata}") } _ => env!("CARGO_PKG_VERSION").to_owned(), });