From 19c7879261a5a7a1b700ba3d68ea432888135aab Mon Sep 17 00:00:00 2001 From: antifallobst Date: Mon, 18 Mar 2024 09:49:03 +0100 Subject: [PATCH] refactor: switched from dotenv to dotenvy --- Cargo.lock | 8 +------- Cargo.toml | 2 +- src/main.rs | 2 +- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7bcad15..84142e9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -576,12 +576,6 @@ dependencies = [ "subtle", ] -[[package]] -name = "dotenv" -version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77c90badedccf4105eca100756a0b1289e191f6fcbdadd3cee1d2f614f97da8f" - [[package]] name = "dotenvy" version = "0.15.7" @@ -940,7 +934,7 @@ dependencies = [ "actix-web", "anyhow", "compile-time-run", - "dotenv", + "dotenvy", "env_logger", "log", "sqlx", diff --git a/Cargo.toml b/Cargo.toml index dafe7e6..23291f9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ license = "MIT" anyhow = "1.0.81" log = "0.4.21" env_logger = "0.11.3" -dotenv = "0.15.0" +dotenvy = "0.15.7" compile-time-run = "0.2.12" actix-web = "4.5.1" diff --git a/src/main.rs b/src/main.rs index 3ec1925..da31568 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,7 +7,7 @@ use log::info; #[actix_web::main] async fn main() -> Result<()> { - dotenv::dotenv()?; + dotenvy::dotenv()?; env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("info")).init(); info!(