Skip to content

Commit 8e97255

Browse files
authored
Merge pull request #1250 from JohnTitor/dotenvor
chore: replace dotenvy with dotenvor
2 parents 44bda97 + 6aca94a commit 8e97255

File tree

25 files changed

+46
-40
lines changed

25 files changed

+46
-40
lines changed

.cspell.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ words:
1212
- clippy
1313
- deadpool
1414
- dotenv
15-
- dotenvy
15+
- dotenvor
1616
- graphiql
1717
- mainmatter
1818
- minijinja

Cargo.lock

Lines changed: 16 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ async-stream = "0.3"
104104
chrono = { version = "0.4.30", features = ["serde"] }
105105
color-eyre = "0.6"
106106
derive_more = "2"
107-
dotenvy = "0.15"
107+
dotenvor = "0.1"
108108
env_logger = "0.11"
109109
examples-common = { path = "./examples-common" }
110110
eyre = { version = "0.6", default-features = false, features = ["auto-install", "track-caller"] }

auth/simple-auth-server/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ actix-web.workspace = true
1111
chrono.workspace = true
1212
derive_more = { workspace = true, features = ["display"] }
1313
diesel = { version = "2", features = ["postgres", "r2d2", "uuid", "chrono"] }
14-
dotenvy.workspace = true
14+
dotenvor.workspace = true
1515
env_logger.workspace = true
1616
log = "0.4"
1717
once_cell = "1"

auth/simple-auth-server/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
- [rust-argon2](https://crates.io/crates/rust-argon2) // crate for hashing passwords using the cryptographically-secure Argon2 hashing algorithm.
2222
- [chrono](https://crates.io/crates/chrono) // Date and time library for Rust.
2323
- [diesel](https://crates.io/crates/diesel) // A safe, extensible ORM and Query Builder for PostgreSQL, SQLite, and MySQL.
24-
- [dotenvy](https://crates.io/crates/dotenvy) // A well-maintained dotenv implementation for Rust.
24+
- [dotenvor](https://crates.io/crates/dotenvor) // A well-maintained dotenv implementation for Rust.
2525
- [derive_more](https://crates.io/crates/derive_more) // Convenience macros to derive traits easily
2626
- [env_logger](https://crates.io/crates/env_logger) // A logging implementation for log which is configured via an environment variable.
2727
- [futures](https://crates.io/crates/futures) // An implementation of futures and streams featuring zero allocations, composability, and iterator-like interfaces.

auth/simple-auth-server/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ mod utils;
1818

1919
#[actix_web::main]
2020
async fn main() -> std::io::Result<()> {
21-
dotenvy::dotenv().ok();
21+
unsafe { dotenvor::dotenv() }.ok();
2222
env_logger::init_from_env(env_logger::Env::new().default_filter_or("info"));
2323

2424
let database_url = std::env::var("DATABASE_URL").expect("DATABASE_URL must be set");

background-jobs/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ apalis = { version = "0.6", features = ["limit"] }
1010
apalis-redis = { version = "0.6" }
1111
chrono.workspace = true
1212
color-eyre.workspace = true
13-
dotenvy.workspace = true
13+
dotenvor.workspace = true
1414
env_logger.workspace = true
1515
eyre.workspace = true
1616
log.workspace = true

background-jobs/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub(crate) type ItemCache = Mutex<HashMap<String, DateTime<Utc>>>;
1616
#[tokio::main]
1717
async fn main() -> eyre::Result<()> {
1818
color_eyre::install()?;
19-
dotenvy::dotenv().ok();
19+
unsafe { dotenvor::dotenv() }.ok();
2020
env_logger::init_from_env(env_logger::Env::new().default_filter_or("info"));
2121

2222
// background jobs relating to local, disposable tasks

basics/todo/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ actix-files.workspace = true
88
actix-session = { workspace = true, features = ["cookie-session"] }
99
actix-web.workspace = true
1010

11-
dotenvy.workspace = true
11+
dotenvor.workspace = true
1212
env_logger.workspace = true
1313
log.workspace = true
1414
serde.workspace = true

basics/todo/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use actix_web::{
77
middleware::{ErrorHandlers, Logger},
88
web,
99
};
10-
use dotenvy::dotenv;
10+
use dotenvor::dotenv;
1111
use tera::Tera;
1212

1313
mod api;
@@ -20,7 +20,7 @@ static SESSION_SIGNING_KEY: &[u8] = &[0; 64];
2020

2121
#[actix_web::main]
2222
async fn main() -> io::Result<()> {
23-
dotenv().ok();
23+
unsafe { dotenv() }.ok();
2424
env_logger::init_from_env(env_logger::Env::new().default_filter_or("info"));
2525

2626
let key = actix_web::cookie::Key::from(SESSION_SIGNING_KEY);

0 commit comments

Comments
 (0)