Browse Source

Use dotenvy instead of unmaintained dotenv and use it for the tests

pull/12/head
B. Blechschmidt 3 years ago
parent
commit
ca3aadcf1a
  1. 2
      Cargo.toml
  2. 1
      src/main.rs
  3. 1
      tests/proxy.rs

2
Cargo.toml

@ -7,7 +7,6 @@ version = "0.1.1"
[dependencies]
base64 = { version = "0.21" }
clap = { version = "4.1", features = ["derive"] }
dotenv = "0.15"
env_logger = "0.10"
log = "0.4"
mio = { version = "0.8", features = ["os-poll", "net", "os-ext"] }
@ -16,6 +15,7 @@ url = "2.3"
[dev-dependencies]
ctor = "0.1"
dotenvy = "0.15"
fork = "0.1"
nix = { version = "0.26", features = ["process", "signal"] }
prctl = "1.0"

1
src/main.rs

@ -17,7 +17,6 @@ struct Args {
}
fn main() {
dotenv::dotenv().ok();
env_logger::Builder::from_env(Env::default().default_filter_or("info")).init();
let args = Args::parse();

1
tests/proxy.rs

@ -41,6 +41,7 @@ mod tests {
#[cfg(test)]
#[ctor::ctor]
fn init() {
dotenvy::dotenv().ok();
routes_setup();
}

Loading…
Cancel
Save