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

#142 in Asynchronous

Download history 7020/week @ 2024-07-29 7950/week @ 2024-08-05 7093/week @ 2024-08-12 6876/week @ 2024-08-19 7394/week @ 2024-08-26 6510/week @ 2024-09-02 5414/week @ 2024-09-09 6349/week @ 2024-09-16 6074/week @ 2024-09-23 7155/week @ 2024-09-30 7697/week @ 2024-10-07 6258/week @ 2024-10-14 6372/week @ 2024-10-21 7343/week @ 2024-10-28 7332/week @ 2024-11-04 5827/week @ 2024-11-11

27,153 downloads per month
Used in 31 crates (7 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–11MB
~112K SLoC