replace dotenv with dotenvy

main
xenofem 2024-03-27 15:33:34 -04:00
parent a641375f92
commit 37695b8bbd
3 changed files with 6 additions and 6 deletions

8
Cargo.lock generated
View File

@ -813,10 +813,10 @@ dependencies = [
]
[[package]]
name = "dotenv"
version = "0.15.0"
name = "dotenvy"
version = "0.15.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "77c90badedccf4105eca100756a0b1289e191f6fcbdadd3cee1d2f614f97da8f"
checksum = "1aaf95b3e5c8f23aa320147307562d361db0ae0d51242340f558153b4eb2439b"
[[package]]
name = "encoding_rs"
@ -1892,7 +1892,7 @@ dependencies = [
"bytes",
"bytesize",
"crc32fast",
"dotenv",
"dotenvy",
"env_logger",
"futures-core",
"inotify",

View File

@ -19,7 +19,7 @@ base64 = "0.13"
bytes = "1.1.0"
bytesize = "1.1.0"
crc32fast = "1.3.2"
dotenv = "0.15"
dotenvy = "0.15"
env_logger = "0.11.3"
futures-core = "0.3"
inotify = "0.10"

View File

@ -374,7 +374,7 @@ where
#[actix_web::main]
async fn main() -> std::io::Result<()> {
dotenv::dotenv().ok();
dotenvy::dotenv().ok();
env_logger::init();
let static_dir: PathBuf = env_or_else("TRANSBEAM_STATIC_DIR", || PathBuf::from("static"));