From f7ba602762d0ba6ff106dc3dc5494fe502af1bf8 Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Wed, 15 Oct 2025 01:18:09 +0200 Subject: [PATCH] chore: Removed dotenvy Since secrets can now be set from automation.toml the .env file was no longer used, so dotenvy can be removed. --- Cargo.lock | 7 ------- Cargo.toml | 2 -- src/main.rs | 3 --- 3 files changed, 12 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d8ff5c3..f025384 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -96,7 +96,6 @@ dependencies = [ "automation_lib", "axum", "config", - "dotenvy", "git-version", "google_home", "mlua", @@ -433,12 +432,6 @@ dependencies = [ "syn 2.0.106", ] -[[package]] -name = "dotenvy" -version = "0.15.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1aaf95b3e5c8f23aa320147307562d361db0ae0d51242340f558153b4eb2439b" - [[package]] name = "dyn-clone" version = "1.0.20" diff --git a/Cargo.toml b/Cargo.toml index 5f401f1..ea5e5f0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,7 +23,6 @@ automation_lib = { path = "./automation_lib" } automation_macro = { path = "./automation_macro" } axum = "0.8.4" bytes = "1.10.1" -dotenvy = "0.15.7" dyn-clone = "1.0.20" eui48 = { version = "1.1.0", features = [ "disp_hexstring", @@ -75,7 +74,6 @@ config = { version = "0.15.15", default-features = false, features = [ "async", "toml", ] } -dotenvy = { workspace = true } git-version = "0.3.9" google_home = { workspace = true } mlua = { workspace = true } diff --git a/src/main.rs b/src/main.rs index 2557c06..2432065 100644 --- a/src/main.rs +++ b/src/main.rs @@ -17,7 +17,6 @@ use axum::http::StatusCode; use axum::routing::post; use axum::{Json, Router}; use config::Config; -use dotenvy::dotenv; use google_home::{GoogleHome, Request, Response}; use mlua::LuaSerdeExt; use rumqttc::AsyncClient; @@ -75,8 +74,6 @@ async fn fulfillment( } async fn app() -> anyhow::Result<()> { - dotenv().ok(); - tracing_subscriber::fmt::init(); info!(version = VERSION, "automation_rs");