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

#89 in Network programming

Download history 69901/week @ 2024-08-15 82881/week @ 2024-08-22 81388/week @ 2024-08-29 81709/week @ 2024-09-05 76843/week @ 2024-09-12 91540/week @ 2024-09-19 84643/week @ 2024-09-26 87752/week @ 2024-10-03 91090/week @ 2024-10-10 107673/week @ 2024-10-17 106989/week @ 2024-10-24 99107/week @ 2024-10-31 104253/week @ 2024-11-07 109959/week @ 2024-11-14 98114/week @ 2024-11-21 84047/week @ 2024-11-28

414,335 downloads per month
Used in 460 crates (40 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
~125K SLoC