diff options
Diffstat (limited to 'base')
-rw-r--r-- | base/Cargo.toml | 2 | ||||
-rw-r--r-- | base/src/lib.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/base/Cargo.toml b/base/Cargo.toml index 03b5055..45c3843 100644 --- a/base/Cargo.toml +++ b/base/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" [dependencies] jellycommon = { path = "../common" } serde = { version = "1.0.188", features = ["derive"] } -serde_json = "1.0.107" +serde_yaml = "0.9.25" log = { workspace = true } sha2 = "0.10.8" base64 = "0.21.4" diff --git a/base/src/lib.rs b/base/src/lib.rs index 062b028..132fd45 100644 --- a/base/src/lib.rs +++ b/base/src/lib.rs @@ -12,11 +12,11 @@ use jellycommon::{config::GlobalConfig, AssetLocation}; use std::{fs::File, path::PathBuf, sync::LazyLock}; pub static CONF: LazyLock<GlobalConfig> = LazyLock::new(|| { - serde_json::from_reader( + serde_yaml::from_reader( File::open( std::env::args() .nth(1) - .expect("First argument must specify the config.json to use."), + .expect("First argument must specify the configuration to use."), ) .unwrap(), ) |