mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-04-20 22:09:09 +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]
|
||||
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"
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -41,6 +41,7 @@ mod tests {
|
|||
#[cfg(test)]
|
||||
#[ctor::ctor]
|
||||
fn init() {
|
||||
dotenvy::dotenv().ok();
|
||||
routes_setup();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue