12 releases

0.5.2 Jul 27, 2024
0.5.1 Dec 26, 2020
0.4.0 Oct 27, 2020
0.3.0 Jul 15, 2020
0.1.1 Feb 2, 2019

#135 in Network programming

Download history 62775/week @ 2024-12-24 68853/week @ 2024-12-31 110035/week @ 2025-01-07 113381/week @ 2025-01-14 120634/week @ 2025-01-21 123139/week @ 2025-01-28 138064/week @ 2025-02-04 133720/week @ 2025-02-11 145174/week @ 2025-02-18 143881/week @ 2025-02-25 147094/week @ 2025-03-04 157475/week @ 2025-03-11 167915/week @ 2025-03-18 159557/week @ 2025-03-25 157491/week @ 2025-04-01 165450/week @ 2025-04-08

680,943 downloads per month
Used in 527 crates (44 directly)

MIT license

66KB
1.5K SLoC

tokio-socks

Build Status Crates Version docs

Asynchronous SOCKS proxy support for Rust.

Features

  • CONNECT command
  • BIND command
  • ASSOCIATE command
  • Username/password authentication
  • GSSAPI authentication
  • Asynchronous DNS resolution
  • Chain proxies (see example)
  • SOCKS4

Compatibility with Other Async Runtimes

By default, the tokio feature is enabled, as the crate name suggests.

Users can opt out tokio by setting default-features = false. The *_with_socket functions accept types implementing the AsyncSocket trait.

The crate provides io::Compat that implements AsyncSocket for futures-io types (requiring the futures-io feature).

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Dependencies

~3–12MB
~128K SLoC