diff --git a/Cargo.lock b/Cargo.lock index ccca0e8..b870811 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -41,7 +41,7 @@ dependencies = [ "anyhow", "axum", "bytes", - "dotenv", + "dotenvy", "google-home", "impl_cast", "parking_lot", @@ -162,10 +162,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5827cebf4670468b8772dd191856768aedcb1b0278a04f989f7766351917b9dc" [[package]] -name = "dotenv" -version = "0.15.0" +name = "dotenvy" +version = "0.15.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77c90badedccf4105eca100756a0b1289e191f6fcbdadd3cee1d2f614f97da8f" +checksum = "03d8c417d7a8cb362e0c37e5d815f5eb7c37f79ff93707329d5a194e42e54ca0" [[package]] name = "encoding_rs" diff --git a/Cargo.toml b/Cargo.toml index 26ee5dc..0e16c9a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ google-home = {path = "./google-home"} paste = "1.0.10" tokio = { version = "1", features = ["rt-multi-thread"] } toml = "0.5.10" -dotenv = "0.15.0" +dotenvy = "0.15.0" anyhow = "1.0.68" reqwest = { version = "0.11.13", features = ["json", "rustls-tls"], default-features = false } # Use rustls, since the other packages also use rustls axum = "0.6.1" diff --git a/src/main.rs b/src/main.rs index e87e1bf..5d36d7e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,7 +5,7 @@ use parking_lot::RwLock; use axum::{Router, Json, routing::post, http::StatusCode, extract::FromRef}; use automation::{config::{Config, OpenIDConfig}, presence::Presence, ntfy::Ntfy, light_sensor::LightSensor, hue_bridge::HueBridge, auth::User}; -use dotenv::dotenv; +use dotenvy::dotenv; use rumqttc::{MqttOptions, Transport, AsyncClient}; use tracing::{error, info, metadata::LevelFilter};