2022-09-28 19:13:40 +00:00
|
|
|
use once_cell::sync::Lazy;
|
|
|
|
|
2022-06-24 15:33:12 +00:00
|
|
|
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'
|
|
|
|
|
|
|
|
";
|
|
|
|
|
2022-10-16 22:20:39 +00:00
|
|
|
/// The publicly visible name of the server
|
|
|
|
pub const SERVER_NAME: &str = "SurrealDB";
|
|
|
|
|
|
|
|
/// The public endpoint for the administration interface
|
|
|
|
pub const APP_ENDPOINT: &str = "https://surrealdb.com/app";
|
|
|
|
|
|
|
|
/// How many concurrent tasks can be handled in a WebSocket
|
|
|
|
pub const MAX_CONCURRENT_CALLS: usize = 24;
|
|
|
|
|
|
|
|
/// The package identifier of this build
|
2022-03-04 16:01:32 +00:00
|
|
|
pub const PKG_NAME: &str = env!("CARGO_PKG_NAME");
|
2022-10-16 22:20:39 +00:00
|
|
|
|
|
|
|
/// The version identifier of this build
|
2022-09-28 19:13:40 +00:00
|
|
|
pub static PKG_VERS: Lazy<String> = 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(),
|
|
|
|
});
|