mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-06-23 17:40:55 +00:00
Use dotenvy in main
This commit is contained in:
parent
4260e28a52
commit
5ce3637bde
2 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,7 @@ 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"] }
|
||||||
|
dotenvy = "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"] }
|
||||||
|
@ -15,7 +16,6 @@ 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"
|
||||||
|
|
|
@ -21,6 +21,7 @@ struct Args {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
dotenvy::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();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue