rush_sync_server/server/
config.rs

1use crate::core::config::Config;
2
3pub fn get_server_version() -> &'static str {
4    env!("CARGO_PKG_VERSION")
5}
6
7pub fn get_server_name() -> &'static str {
8    env!("CARGO_PKG_NAME")
9}
10
11pub const SERVER_VERSION: &str = env!("CARGO_PKG_VERSION");
12pub const SERVER_NAME: &str = env!("CARGO_PKG_NAME");
13
14pub fn get_server_config_from_main(config: &Config) -> &crate::core::config::ServerConfig {
15    &config.server
16}
17
18pub fn get_logging_config_from_main(config: &Config) -> &crate::core::config::LoggingConfig {
19    &config.logging
20}