chore(deps): replace unmaintained dotenv with dotenvy (#30)

Fixes: #25

Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>3
This commit is contained in:
Leonidas Spyropoulos 2022-10-04 11:02:51 +01:00 committed by GitHub
parent 20a1482aa7
commit 1050448ebd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 60 additions and 6 deletions

62
Cargo.lock generated
View file

@ -543,10 +543,33 @@ dependencies = [
] ]
[[package]] [[package]]
name = "dotenv" name = "dirs"
version = "0.15.0" version = "4.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "77c90badedccf4105eca100756a0b1289e191f6fcbdadd3cee1d2f614f97da8f" checksum = "ca3aa72a6f96ea37bbc5aa912f6788242832f75369bdfdadcb0e38423f100059"
dependencies = [
"dirs-sys",
]
[[package]]
name = "dirs-sys"
version = "0.3.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1b1d1d91c932ef41c0f2663aa8b0ca0342d444d842c06914aa0a7e352d0bada6"
dependencies = [
"libc",
"redox_users",
"winapi 0.3.9",
]
[[package]]
name = "dotenvy"
version = "0.15.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ed9155c8f4dc55c7470ae9da3f63c6785245093b3f6aeb0f5bf2e968efbba314"
dependencies = [
"dirs",
]
[[package]] [[package]]
name = "either" name = "either"
@ -1312,6 +1335,17 @@ dependencies = [
"bitflags", "bitflags",
] ]
[[package]]
name = "redox_users"
version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b033d837a7cf162d7993aded9304e30a83213c648b6e389db233191f891e5c2b"
dependencies = [
"getrandom",
"redox_syscall",
"thiserror",
]
[[package]] [[package]]
name = "regex" name = "regex"
version = "1.6.0" version = "1.6.0"
@ -1376,7 +1410,7 @@ dependencies = [
"awc", "awc",
"byte-unit", "byte-unit",
"config", "config",
"dotenv", "dotenvy",
"env_logger", "env_logger",
"futures-util", "futures-util",
"glob", "glob",
@ -1590,6 +1624,26 @@ dependencies = [
"unicode-width", "unicode-width",
] ]
[[package]]
name = "thiserror"
version = "1.0.37"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "10deb33631e3c9018b9baf9dcbbc4f737320d2b576bac10f6aefa048fa407e3e"
dependencies = [
"thiserror-impl",
]
[[package]]
name = "thiserror-impl"
version = "1.0.37"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "982d17546b47146b28f7c22e3d08465f6b8903d0ea13c1660d9d84a6e7adcdbb"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]] [[package]]
name = "time" name = "time"
version = "0.3.14" version = "0.3.14"

View file

@ -23,7 +23,7 @@ serde = "1.0.145"
futures-util = "0.3.24" futures-util = "0.3.24"
petname = "1.1.2" petname = "1.1.2"
rand = "0.8.5" rand = "0.8.5"
dotenv = "0.15.0" dotenvy = "0.15.5"
url = "2.3.1" url = "2.3.1"
mime = "0.3.16" mime = "0.3.16"
regex = "1.6.0" regex = "1.6.0"

View file

@ -19,7 +19,7 @@ use std::time::Duration;
#[actix_web::main] #[actix_web::main]
async fn main() -> IoResult<()> { async fn main() -> IoResult<()> {
// Load the .env file. // Load the .env file.
dotenv::dotenv().ok(); dotenvy::dotenv().ok();
// Initialize logger. // Initialize logger.
env_logger::init_from_env(env_logger::Env::new().default_filter_or("info")); env_logger::init_from_env(env_logger::Env::new().default_filter_or("info"));