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

#88 in Network programming

Download history 71402/week @ 2024-07-30 79733/week @ 2024-08-06 69433/week @ 2024-08-13 77783/week @ 2024-08-20 82322/week @ 2024-08-27 84280/week @ 2024-09-03 74361/week @ 2024-09-10 86703/week @ 2024-09-17 87597/week @ 2024-09-24 88232/week @ 2024-10-01 87622/week @ 2024-10-08 101946/week @ 2024-10-15 108819/week @ 2024-10-22 99743/week @ 2024-10-29 104553/week @ 2024-11-05 89150/week @ 2024-11-12

419,645 downloads per month
Used in 451 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–11MB
~121K SLoC