Skip to content

Commit f71522d

Browse files
authored
Replace dotenv with dotenvy (#124)
Fixes https://rustsec.org/advisories/RUSTSEC-2021-0141 See dotenv-rs/dotenv#74 for reference
1 parent 324ec03 commit f71522d

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ tokio = { version = "1.50.0", features = ["time", "sync", "macros", "io-util"] }
6060
tokio = { version = "1.50.0", features = ["full"] }
6161

6262
[dev-dependencies]
63-
dotenv = "0.15"
63+
dotenvy = "0.15.7"
6464
tempfile = "3"
6565
sdp-rs = "0.2.1"
6666
rtp-rs = "0.6.0"

examples/client/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ async fn main() -> rsipstack::Result<()> {
141141
.try_init()
142142
.ok();
143143

144-
if let Err(e) = dotenv::dotenv() {
144+
if let Err(e) = dotenvy::dotenv() {
145145
info!(error = %e, "Failed to load .env file");
146146
}
147147

examples/proxy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ async fn main() -> Result<()> {
9595
.with_line_number(true)
9696
.try_init()
9797
.ok();
98-
if let Err(e) = dotenv::dotenv() {
98+
if let Err(e) = dotenvy::dotenv() {
9999
info!(error = %e, "Failed to load .env file");
100100
}
101101
let args = Args::parse();

0 commit comments

Comments
 (0)