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

#92 in Network programming

Download history 111943/week @ 2024-11-30 111474/week @ 2024-12-07 109103/week @ 2024-12-14 54322/week @ 2024-12-21 71413/week @ 2024-12-28 105243/week @ 2025-01-04 118703/week @ 2025-01-11 113365/week @ 2025-01-18 121135/week @ 2025-01-25 133684/week @ 2025-02-01 143500/week @ 2025-02-08 128686/week @ 2025-02-15 148501/week @ 2025-02-22 146188/week @ 2025-03-01 152573/week @ 2025-03-08 146749/week @ 2025-03-15

618,860 downloads per month
Used in 506 crates (43 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
~126K SLoC