From 0e2f9ec087f5341538a77e7ee700d4e15de8c467 Mon Sep 17 00:00:00 2001 From: Dzejkop Date: Thu, 21 Sep 2023 16:56:30 +0200 Subject: [PATCH] Replace dotenv with dotenvy --- Cargo.lock | 8 +------- crates/micro-oz/Cargo.toml | 2 +- crates/micro-oz/src/main.rs | 2 +- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3c9d28b7..e490e736 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2064,12 +2064,6 @@ dependencies = [ "winapi", ] -[[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.6" @@ -3706,7 +3700,7 @@ dependencies = [ "axum", "chrono", "clap 4.3.14", - "dotenv", + "dotenvy", "ethers", "hex", "hyper", diff --git a/crates/micro-oz/Cargo.toml b/crates/micro-oz/Cargo.toml index 3d6ffbfd..ce284bb8 100644 --- a/crates/micro-oz/Cargo.toml +++ b/crates/micro-oz/Cargo.toml @@ -11,7 +11,7 @@ async-trait = "0.1.71" axum = "0.6.19" chrono = "0.4.26" clap = { version = "4.3.14", features = ["env", "derive"] } -dotenv = "0.15.0" +dotenvy = "0.15.0" ethers = { version = "1.0.0", features = ["openssl"] } hex = "0.4.3" hyper = "0.14.27" diff --git a/crates/micro-oz/src/main.rs b/crates/micro-oz/src/main.rs index f5b1809c..97e834c4 100644 --- a/crates/micro-oz/src/main.rs +++ b/crates/micro-oz/src/main.rs @@ -30,7 +30,7 @@ struct Args { #[tokio::main] async fn main() -> anyhow::Result<()> { - dotenv::dotenv().ok(); + dotenvy::dotenv().ok(); tracing_subscriber::fmt::init(); let args = Args::parse();