mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-04-20 13:59:10 +00:00
Use dotenvy instead of unmaintained dotenv and use it for the tests
This commit is contained in:
parent
c82c610c4b
commit
ca3aadcf1a
3 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,6 @@ version = "0.1.1"
|
||||||
[dependencies]
|
[dependencies]
|
||||||
base64 = { version = "0.21" }
|
base64 = { version = "0.21" }
|
||||||
clap = { version = "4.1", features = ["derive"] }
|
clap = { version = "4.1", features = ["derive"] }
|
||||||
dotenv = "0.15"
|
|
||||||
env_logger = "0.10"
|
env_logger = "0.10"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
mio = { version = "0.8", features = ["os-poll", "net", "os-ext"] }
|
mio = { version = "0.8", features = ["os-poll", "net", "os-ext"] }
|
||||||
|
@ -16,6 +15,7 @@ url = "2.3"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
ctor = "0.1"
|
ctor = "0.1"
|
||||||
|
dotenvy = "0.15"
|
||||||
fork = "0.1"
|
fork = "0.1"
|
||||||
nix = { version = "0.26", features = ["process", "signal"] }
|
nix = { version = "0.26", features = ["process", "signal"] }
|
||||||
prctl = "1.0"
|
prctl = "1.0"
|
||||||
|
|
|
@ -17,7 +17,6 @@ struct Args {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
dotenv::dotenv().ok();
|
|
||||||
env_logger::Builder::from_env(Env::default().default_filter_or("info")).init();
|
env_logger::Builder::from_env(Env::default().default_filter_or("info")).init();
|
||||||
let args = Args::parse();
|
let args = Args::parse();
|
||||||
|
|
||||||
|
|
|
@ -41,6 +41,7 @@ mod tests {
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
#[ctor::ctor]
|
#[ctor::ctor]
|
||||||
fn init() {
|
fn init() {
|
||||||
|
dotenvy::dotenv().ok();
|
||||||
routes_setup();
|
routes_setup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue