surrealdb/env/mod.rs
/// The SurrealDB package version identifier
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
/// The operating system of the current machine
pub fn os() -> &'static str {
get_cfg!(target_os: "windows", "macos", "ios", "linux", "android", "freebsd", "openbsd", "netbsd");
target_os()
}
/// The system architecture of the current machine
pub fn arch() -> &'static str {
get_cfg!(target_arch: "x86", "x86_64", "mips", "powerpc", "powerpc64", "arm", "aarch64");
target_arch()
}