10 releases

0.5.1 Mar 3, 2022
0.5.0 Dec 26, 2020
0.4.0 Oct 16, 2020
0.3.1 Mar 18, 2020
0.2.0 Dec 31, 2019

#348 in Asynchronous

Download history 7755/week @ 2023-10-22 6375/week @ 2023-10-29 6697/week @ 2023-11-05 7194/week @ 2023-11-12 6765/week @ 2023-11-19 7345/week @ 2023-11-26 7870/week @ 2023-12-03 7809/week @ 2023-12-10 5166/week @ 2023-12-17 2537/week @ 2023-12-24 4164/week @ 2023-12-31 6063/week @ 2024-01-07 6927/week @ 2024-01-14 6136/week @ 2024-01-21 5853/week @ 2024-01-28 5339/week @ 2024-02-04

24,828 downloads per month
Used in 15 crates (6 directly)

Apache-2.0 OR MIT

30KB
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–13MB
~124K SLoC