static_toml::static_toml! {
#[derive(Debug, Clone, serde::Deserialize)]
#[static_toml(cow, root_mod = config)]
const DEFAULT_CONFIG = include_toml!("examples/config.toml");
}
const INPUT_CONFIG: &str = r#"
[config]
string = "another value"
int = 69
array = [8, 0, 0, 8, 5]
"#;
fn main() {
use config::Config;
let default: Config = DEFAULT_CONFIG.clone();
println!("default values for a config: {default:?}");
let input: Config = toml::from_str(INPUT_CONFIG).unwrap();
println!("user input for a config: {input:?}");
}