A SOCKS5 implementation available as as library.
It provides APIs for working with the protocol in a runtime-independant maner thanks to futures crate.
tokio(disabled by default) - provides Tokio-based implementations fortrait Clientandtrait Server.
I'd recommend you looking into the implementations of the Tokio-based client and server to understand how to use the library.
This project uses Tiwaz License, version 1.0.