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

#245 in Asynchronous

Download history 6188/week @ 2024-10-19 7291/week @ 2024-10-26 7320/week @ 2024-11-02 6235/week @ 2024-11-09 6153/week @ 2024-11-16 5708/week @ 2024-11-23 6502/week @ 2024-11-30 7092/week @ 2024-12-07 5977/week @ 2024-12-14 3491/week @ 2024-12-21 3595/week @ 2024-12-28 5173/week @ 2025-01-04 5502/week @ 2025-01-11 5781/week @ 2025-01-18 5921/week @ 2025-01-25 5900/week @ 2025-02-01

24,030 downloads per month
Used in 32 crates (8 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
~114K SLoC