diff --git a/socksx/Cargo.toml b/socksx/Cargo.toml index 83b2b5e..0cd908b 100644 --- a/socksx/Cargo.toml +++ b/socksx/Cargo.toml @@ -7,29 +7,29 @@ edition = "2018" license = "MIT" [dependencies] -anyhow = "1" -async-trait = "0.1" -bytes = "1" -clap = { version = "4.4", features = ["derive", "env"] } -dotenv = "0.15" -env_logger = "0.10" +anyhow = "1.0.4" +async-trait = "0.1.0" +bytes = "1.0.0" +clap = { version = "4.4.0", features = ["derive", "env"] } +dotenv = { version = "0.15.0", package = "dotenvy" } +env_logger = "0.11.0" futures = "0.3" -human-panic = "1" -itertools = "0.11" -libc = "0.2" -log = "0.4" -num-derive = "0.4" -num-traits = "0.2" -thiserror = "1" -tokio = { version = "1", features = ["full"] } -url = "2.2" +human-panic = "2.0.0" +itertools = "0.13.0" +libc = "0.2.156" +log = "0.4.8" +num-derive = "0.4.0" +num-traits = "0.2.0" +thiserror = "1.0.0" +tokio = { version = "1.5.0", features = ["full"] } +url = "2.2.0" [target.'cfg(unix)'.dependencies] -nix = { version = "0.27", features = ["net","socket"] } +nix = { version = "0.29.0", features = ["net","socket"] } [target.'cfg(windows)'.dependencies] -windows = { version = "0.51", features = ["Win32_Networking_WinSock"] } +windows = { version = "0.51.0", features = ["Win32_Networking_WinSock"] } [dev-dependencies] -chacha20 = "0.9" -pin-project-lite = "0.2" +chacha20 = "0.9.0" +pin-project-lite = "0.2.0" diff --git a/socksx/src/main.rs b/socksx/src/main.rs index a212484..7b7c1b9 100644 --- a/socksx/src/main.rs +++ b/socksx/src/main.rs @@ -70,12 +70,7 @@ async fn main() -> Result<()> { logger.filter_level(LevelFilter::Info).init(); // Setup human-friendly panic messages - setup_panic!(Metadata { - name: "SOCKSX".into(), - version: env!("CARGO_PKG_VERSION").into(), - authors: env!("CARGO_PKG_AUTHORS").replace(":", ", ").into(), - homepage: env!("CARGO_PKG_HOMEPAGE").into(), - }); + setup_panic!(metadata!()); } // TODO: validate host