diff --git a/Cargo.toml b/Cargo.toml index 5cba646..cc1f8e1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "twba-twitch-data" -version = "0.3.0" +version = "0.3.1" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/lib.rs b/src/lib.rs index e56336f..a6d2954 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -704,6 +704,7 @@ pub async fn get_client<'a>() -> Result> { .env() .file("./settings.toml") .file(shellexpand::tilde("~/twba/config.toml").into_owned()) + .file(std::env::var("TWBA_CONFIG").unwrap_or_else(|_| "~/twba/config.toml".to_string())) .load() .expect("Failed to load config"); info!("get_client: config: {:?}", conf);