refactor: switched from dotenv to dotenvy
This commit is contained in:
parent
badfdb438f
commit
19c7879261
|
@ -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",
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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!(
|
||||
|
|
Loading…
Reference in New Issue