You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xplr/src/default_config.rs

25 lines
553 B
Rust

const DEFAULT_CONFIG_YAML: &str = include_str!("config.yml");
use crate::config::{self, Config};
use lazy_static::lazy_static;
lazy_static! {
static ref DEFAULT_CONFIG: Config = serde_yaml::from_str(DEFAULT_CONFIG_YAML).unwrap();
}
pub fn version() -> String {
DEFAULT_CONFIG.version.clone()
}
pub fn general() -> config::GeneralConfig {
DEFAULT_CONFIG.general.clone()
}
pub fn node_types() -> config::NodeTypesConfig {
DEFAULT_CONFIG.node_types.clone()
}
pub fn modes() -> config::ModesConfig {
DEFAULT_CONFIG.modes.clone()
}