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

#55 in Network programming

Download history 158691/week @ 2025-06-14 167079/week @ 2025-06-21 139769/week @ 2025-06-28 165537/week @ 2025-07-05 580812/week @ 2025-07-12 131958/week @ 2025-07-19 116095/week @ 2025-07-26 123764/week @ 2025-08-02 128939/week @ 2025-08-09 123936/week @ 2025-08-16 121311/week @ 2025-08-23 116972/week @ 2025-08-30 131448/week @ 2025-09-06 114786/week @ 2025-09-13 116237/week @ 2025-09-20 134128/week @ 2025-09-27

516,157 downloads per month
Used in 354 crates (52 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–13MB
~123K SLoC