refactor: switched from dotenv to dotenvy

This commit is contained in:
antifallobst 2024-03-18 09:49:03 +01:00
parent badfdb438f
commit 19c7879261
Signed by: antifallobst
GPG Key ID: 2B4F402172791BAF
3 changed files with 3 additions and 9 deletions

8
Cargo.lock generated
View File

@ -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",

View File

@ -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"

View File

@ -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!(