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

#190 in Asynchronous

Download history 4053/week @ 2024-01-01 6188/week @ 2024-01-08 6700/week @ 2024-01-15 5960/week @ 2024-01-22 5789/week @ 2024-01-29 5589/week @ 2024-02-05 7197/week @ 2024-02-12 6439/week @ 2024-02-19 4975/week @ 2024-02-26 5371/week @ 2024-03-04 5999/week @ 2024-03-11 5816/week @ 2024-03-18 5410/week @ 2024-03-25 6403/week @ 2024-04-01 4433/week @ 2024-04-08 3016/week @ 2024-04-15

19,632 downloads per month
Used in 15 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–14MB
~128K SLoC