Switched from toml to yaml for configuration
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2023-11-05 22:41:48 +01:00
parent b12b76bd50
commit dd4be4a2ee
14 changed files with 346 additions and 325 deletions

View File

@@ -26,7 +26,6 @@ pub struct Config {
pub fullfillment: FullfillmentConfig,
pub ntfy: Option<NtfyConfig>,
pub presence: PresenceConfig,
#[serde(rename = "device")]
pub devices: IndexMap<String, DeviceConfigs>,
}
@@ -137,7 +136,7 @@ impl Config {
missing.has_missing()?;
let config: Config = toml::from_str(&file)?;
let config: Config = serde_yaml::from_str(&file)?;
Ok(config)
}