surrealdb-server 3.0.3

A scalable, distributed, collaborative, document-graph database, for the realtime web
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::sync::LazyLock;

use anyhow::Result;

use crate::cnf::PKG_VERSION;

/// Stores the current release identifier
pub static RELEASE: LazyLock<String> = LazyLock::new(|| {
	format!("{} for {} on {}", *PKG_VERSION, std::env::consts::OS, std::env::consts::ARCH)
});

pub fn init() -> Result<()> {
	// Log version
	info!("Running {}", *RELEASE);
	// All ok
	Ok(())
}