11 unstable releases

0.6.0 Feb 25, 2024
0.5.1 Mar 3, 2022
0.5.0 Dec 26, 2020
0.4.0 Oct 16, 2020
0.2.0 Dec 31, 2019

#125 in Asynchronous

Download history 5405/week @ 2024-03-14 5696/week @ 2024-03-21 5745/week @ 2024-03-28 6294/week @ 2024-04-04 3060/week @ 2024-04-11 3409/week @ 2024-04-18 4036/week @ 2024-04-25 7164/week @ 2024-05-02 5611/week @ 2024-05-09 6212/week @ 2024-05-16 7506/week @ 2024-05-23 7263/week @ 2024-05-30 6722/week @ 2024-06-06 7555/week @ 2024-06-13 6821/week @ 2024-06-20 2862/week @ 2024-06-27

25,023 downloads per month
Used in 16 crates (6 directly)

Apache-2.0 OR MIT

30KB
703 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–12MB
~117K SLoC