diff --git a/Cargo.lock b/Cargo.lock index f2e9bee..e637605 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -558,6 +558,26 @@ dependencies = [ "crypto-common", ] +[[package]] +name = "dirs" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +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", +] + [[package]] name = "dlv-list" version = "0.3.0" @@ -565,10 +585,13 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0688c2a7f92e427f44895cd63841bff7b29f8d7a1648b9e7e07a4a365b2e1257" [[package]] -name = "dotenv" -version = "0.15.0" +name = "dotenvy" +version = "0.15.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77c90badedccf4105eca100756a0b1289e191f6fcbdadd3cee1d2f614f97da8f" +checksum = "da3db6fcad7c1fc4abdd99bf5276a4db30d6a819127903a709ed41e5ff016e84" +dependencies = [ + "dirs", +] [[package]] name = "either" @@ -876,7 +899,7 @@ dependencies = [ "badge", "bytes", "config", - "dotenv", + "dotenvy", "futures", "git2", "lazy_static", @@ -1555,6 +1578,17 @@ dependencies = [ "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]] name = "regex" version = "1.5.6" diff --git a/Cargo.toml b/Cargo.toml index a3f9f9e..9e27b84 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ actix-web = "4.1.0" badge = "0.3.0" bytes = "1.2.1" config = { version = "0.13.2", features = ["toml"] } -dotenv = "0.15.0" +dotenvy = "0.15.3" futures = "0.3.24" git2 = "0.15.0" lazy_static = "1.4.0" diff --git a/src/main.rs b/src/main.rs index 945b6ef..b72aa5e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,7 +3,7 @@ use hoc::{config::Settings, telemetry}; use std::net::TcpListener; fn init() { - dotenv::dotenv().ok(); + dotenvy::dotenv().ok(); openssl_probe::init_ssl_cert_env_vars(); telemetry::init_subscriber(telemetry::get_subscriber("hoc", "info"))