#tokio #async #socks #proxy

async-socks5

An async/.await SOCKS5 implementation

9 unstable releases (4 breaking)

0.5.0 Dec 26, 2020
0.4.0 Oct 16, 2020
0.3.2 Aug 4, 2020
0.3.1 Mar 18, 2020
0.1.1 Dec 25, 2019

#64 in Asynchronous

Download history 606/week @ 2020-11-10 620/week @ 2020-11-17 710/week @ 2020-11-24 409/week @ 2020-12-01 298/week @ 2020-12-08 915/week @ 2020-12-15 243/week @ 2020-12-22 190/week @ 2020-12-29 420/week @ 2021-01-05 398/week @ 2021-01-12 256/week @ 2021-01-19 324/week @ 2021-01-26 1431/week @ 2021-02-02 317/week @ 2021-02-09 988/week @ 2021-02-16 612/week @ 2021-02-23

2,181 downloads per month
Used in 6 crates (2 directly)

Apache-2.0 OR MIT

29KB
711 lines

async-socks5

An async/.await SOCKS5 implementation.

Examples

Connect to google.com:80 through my-proxy-server.com:54321:

use tokio::net::TcpStream;
use tokio::io::BufStream;
use async_socks5::{connect, Result};

#[tokio::main]
async fn main() -> Result<()> {
  let stream = TcpStream::connect("my-proxy-server.com:54321").await?;
  let mut stream = BufStream::new(stream);
  connect(&mut stream, ("google.com", 80), None).await?;
}

More examples.

Changelog

License

async-socks5 under either of:

at your option.

Dependencies

~3.5MB
~62K SLoC