From 1210aaed3e0bca683cf92c2c3f99875981978c80 Mon Sep 17 00:00:00 2001 From: ghassmo Date: Sat, 26 Feb 2022 19:53:49 +0400 Subject: [PATCH] add fast-socks5 crate --- Cargo.lock | 13 +++++++++++++ Cargo.toml | 4 ++++ 2 files changed, 17 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 9e8d24bc9..b27a86db2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1395,6 +1395,7 @@ dependencies = [ "clap 3.0.7", "crypto_api_chachapoly", "dirs 4.0.0", + "fast-socks5", "futures", "group", "halo2_gadgets", @@ -1862,6 +1863,18 @@ dependencies = [ "synstructure", ] +[[package]] +name = "fast-socks5" +version = "0.4.3" +source = "git+https://github.com/ghassmo/fast-socks5#52118864c981a418b167bfa4f0a92de6fbed30e7" +dependencies = [ + "anyhow", + "async-std", + "futures", + "log", + "thiserror", +] + [[package]] name = "fastrand" version = "1.6.0" diff --git a/Cargo.toml b/Cargo.toml index d922d2b1f..82c34b745 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -67,6 +67,9 @@ simplelog = {version = "0.11.2", optional = true} tungstenite = {version = "0.16.0", optional = true} async-tungstenite = {version = "0.16.1", optional = true} +# socks5 +fast-socks5 = {git = "https://github.com/ghassmo/fast-socks5", optional = true} + # Crypto bitvec = {version = "1.0.0", optional = true} rand = {version = "0.8.5", optional = true} @@ -142,6 +145,7 @@ util = [ rpc = [ "rand", "url", + "fast-socks5", "async-net", "async-runtime",