From 8bb8d218c72f5d454d9935e1b6fdba715be52bc6 Mon Sep 17 00:00:00 2001 From: Jonathan Strong Date: Fri, 3 Nov 2023 03:54:50 -0400 Subject: [PATCH] load .env file vars --- Cargo.toml | 1 + src/main.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 11e0637..ecf2f94 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -39,6 +39,7 @@ tera = { version = "1", optional = true } chrono = { version = "0.4", optional = true } regex = "1.6" url = "2" +dotenvy = "0.15" [features] default = [] diff --git a/src/main.rs b/src/main.rs index 3d57dc2..c277efc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -772,6 +772,7 @@ async fn run(config: Config) -> Result<(), AnyError> { fn main() { let begin = Instant::now(); + dotenvy::dotenv().ok(); setup_logger();