refactor: switched from dotenv to dotenvy
This commit is contained in:
parent
badfdb438f
commit
19c7879261
|
@ -576,12 +576,6 @@ dependencies = [
|
||||||
"subtle",
|
"subtle",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "dotenv"
|
|
||||||
version = "0.15.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "77c90badedccf4105eca100756a0b1289e191f6fcbdadd3cee1d2f614f97da8f"
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "dotenvy"
|
name = "dotenvy"
|
||||||
version = "0.15.7"
|
version = "0.15.7"
|
||||||
|
@ -940,7 +934,7 @@ dependencies = [
|
||||||
"actix-web",
|
"actix-web",
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"compile-time-run",
|
"compile-time-run",
|
||||||
"dotenv",
|
"dotenvy",
|
||||||
"env_logger",
|
"env_logger",
|
||||||
"log",
|
"log",
|
||||||
"sqlx",
|
"sqlx",
|
||||||
|
|
|
@ -11,7 +11,7 @@ license = "MIT"
|
||||||
anyhow = "1.0.81"
|
anyhow = "1.0.81"
|
||||||
log = "0.4.21"
|
log = "0.4.21"
|
||||||
env_logger = "0.11.3"
|
env_logger = "0.11.3"
|
||||||
dotenv = "0.15.0"
|
dotenvy = "0.15.7"
|
||||||
compile-time-run = "0.2.12"
|
compile-time-run = "0.2.12"
|
||||||
|
|
||||||
actix-web = "4.5.1"
|
actix-web = "4.5.1"
|
||||||
|
|
|
@ -7,7 +7,7 @@ use log::info;
|
||||||
|
|
||||||
#[actix_web::main]
|
#[actix_web::main]
|
||||||
async fn main() -> Result<()> {
|
async fn main() -> Result<()> {
|
||||||
dotenv::dotenv()?;
|
dotenvy::dotenv()?;
|
||||||
env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("info")).init();
|
env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("info")).init();
|
||||||
|
|
||||||
info!(
|
info!(
|
||||||
|
|
Loading…
Reference in New Issue