From e2eb94975998433ff95eafd35ce5d24056022327 Mon Sep 17 00:00:00 2001 From: Andy Bailey Date: Wed, 18 Sep 2024 13:14:49 -0500 Subject: [PATCH] Switch to dotenvy - a well maintained fork of the dotenv crate (unmaintained since 2019) --- Cargo.toml | 2 +- src/adapter.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9544e4e..bb4edab 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ readme= "README.md" casbin = { version = "2.1.0", default-features = false } sqlx = { version = "0.7", default-features = false, features = [ "macros" ] } async-trait = "0.1.51" -dotenv = { version = "0.15.0", default-features = false } +dotenvy = { version = "0.15.0", default-features = false } tokio = { version = "1.10.0", default-features = false, optional = true } async-std = { version = "1.9.0", default-features = false, optional = true } diff --git a/src/adapter.rs b/src/adapter.rs index 9287f93..52b9488 100644 --- a/src/adapter.rs +++ b/src/adapter.rs @@ -1,6 +1,6 @@ use async_trait::async_trait; use casbin::{error::AdapterError, Adapter, Error as CasbinError, Filter, Model, Result}; -use dotenv::dotenv; +use dotenvy::dotenv; use std::sync::{ atomic::{AtomicBool, Ordering}, Arc,