diff options
| author | Fuwn <[email protected]> | 2021-06-16 02:17:34 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-06-16 02:17:34 -0700 |
| commit | 1341605c2eb38cea0f616d065966ab0d4c153d2b (patch) | |
| tree | 7c293c094bded46d3b4ba4cbf9f5ab9df5c1d127 /crates/whirl_config/src | |
| parent | chore(github): move funding information (diff) | |
| download | whirl-1341605c2eb38cea0f616d065966ab0d4c153d2b.tar.xz whirl-1341605c2eb38cea0f616d065966ab0d4c153d2b.zip | |
feat(config): create `version` key
At the moment, the `version` key is never accessed, but once Whirl's "`1.0`" release is out, the
configuration schema will need to be standardized, the `version` key will regulate that and also
ensure no one is left behind when updating.
BREAKING CHANGE: `version` key is created
Diffstat (limited to 'crates/whirl_config/src')
| -rw-r--r-- | crates/whirl_config/src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/whirl_config/src/lib.rs b/crates/whirl_config/src/lib.rs index 7920ade..81b71d7 100644 --- a/crates/whirl_config/src/lib.rs +++ b/crates/whirl_config/src/lib.rs @@ -45,6 +45,7 @@ use crate::structures::{ #[derive(Serialize, Deserialize, Debug)] pub struct Config { + pub version: String, pub whirlsplash: WhirlsplashConfig, pub distributor: DistributorConfig, pub hub: HubConfig, @@ -87,6 +88,7 @@ impl Config { impl Default for Config { fn default() -> Self { Self { + version: "0.1.0".to_string(), whirlsplash: WhirlsplashConfig { worldsmaster_username: "WORLDSMASTER".to_string(), ip: "0.0.0.0".to_string(), |