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

#383 in Asynchronous

Download history 27339/week @ 2025-06-15 53447/week @ 2025-06-22 19826/week @ 2025-06-29 34967/week @ 2025-07-06 29655/week @ 2025-07-13 31595/week @ 2025-07-20 33020/week @ 2025-07-27 35506/week @ 2025-08-03 31225/week @ 2025-08-10 31750/week @ 2025-08-17 27665/week @ 2025-08-24 24789/week @ 2025-08-31 29984/week @ 2025-09-07 27121/week @ 2025-09-14 27752/week @ 2025-09-21 30587/week @ 2025-09-28

117,444 downloads per month
Used in 34 crates (9 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

~2–12MB
~109K SLoC