mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-06-23 01:20:52 +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]
|
||||
base64 = { version = "0.21" }
|
||||
clap = { version = "4.1", features = ["derive"] }
|
||||
dotenvy = "0.15"
|
||||
env_logger = "0.10"
|
||||
log = "0.4"
|
||||
mio = { version = "0.8", features = ["os-poll", "net", "os-ext"] }
|
||||
|
@ -15,7 +16,6 @@ url = "2.3"
|
|||
|
||||
[dev-dependencies]
|
||||
ctor = "0.1"
|
||||
dotenvy = "0.15"
|
||||
fork = "0.1"
|
||||
nix = { version = "0.26", features = ["process", "signal"] }
|
||||
prctl = "1.0"
|
||||
|
|
|
@ -21,6 +21,7 @@ struct Args {
|
|||
}
|
||||
|
||||
fn main() {
|
||||
dotenvy::dotenv().ok();
|
||||
env_logger::Builder::from_env(Env::default().default_filter_or("info")).init();
|
||||
let args = Args::parse();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue