rush_sync_server/server/
config.rs1use crate::core::config::Config;
3
4pub fn get_server_version() -> &'static str {
6 env!("CARGO_PKG_VERSION")
7}
8
9pub fn get_server_name() -> &'static str {
10 env!("CARGO_PKG_NAME")
11}
12
13pub const SERVER_VERSION: &str = env!("CARGO_PKG_VERSION");
15pub const SERVER_NAME: &str = env!("CARGO_PKG_NAME");
16
17pub fn get_server_config_from_main(config: &Config) -> &crate::core::config::ServerConfig {
19 &config.server
20}
21
22pub fn get_logging_config_from_main(config: &Config) -> &crate::core::config::LoggingConfig {
24 &config.logging
25}