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

#958 in Authentication

Download history 6539/week @ 2024-12-02 7327/week @ 2024-12-09 5853/week @ 2024-12-16 3363/week @ 2024-12-23 3599/week @ 2024-12-30 5045/week @ 2025-01-06 5532/week @ 2025-01-13 5822/week @ 2025-01-20 6213/week @ 2025-01-27 6828/week @ 2025-02-03 7093/week @ 2025-02-10 7209/week @ 2025-02-17 7812/week @ 2025-02-24 7834/week @ 2025-03-03 8071/week @ 2025-03-10 6493/week @ 2025-03-17

30,593 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