fusion_web/config.rs
1use fusion_core::configuration::Configuration;
2use serde::{Deserialize, Serialize};
3
4#[derive(Debug, Clone, Serialize, Deserialize, Configuration)]
5#[config_prefix = "fusion.web"]
6pub struct WebConfig {
7 pub enable: bool,
8 pub server_addr: String,
9 pub enable_remote_addr: bool,
10}
11
12pub const DEFAULT_CONFIG_STR: &str = include_str!("../resources/default.toml");