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

#87 in Network programming

Download history 73859/week @ 2024-07-20 74304/week @ 2024-07-27 73924/week @ 2024-08-03 73745/week @ 2024-08-10 72971/week @ 2024-08-17 85673/week @ 2024-08-24 82059/week @ 2024-08-31 72954/week @ 2024-09-07 82107/week @ 2024-09-14 93640/week @ 2024-09-21 83730/week @ 2024-09-28 89931/week @ 2024-10-05 99095/week @ 2024-10-12 107564/week @ 2024-10-19 99856/week @ 2024-10-26 87218/week @ 2024-11-02

408,610 downloads per month
Used in 441 crates (38 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
~123K SLoC