Registry / networking / async-socks5

async-socks5

JSON →
library0.6.0rscratesunverified

An async/.await SOCKS5 implementation.

# Cargo.toml [dependencies] async-socks5 = "0.6.0"
INSTALL
IMPORT
SIG · ASYNC-SOCKS5
A
async-socks5
networkingrustv0.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Socks5Stream
use async_socks5::Socks5Stream;

Connect to a remote host through a SOCKS5 proxy.

use async_socks5::Socks5Stream; #[tokio::main] async fn main() -> Result<(), Box<dyn std::error::Error>> { let stream = Socks5Stream::connect("127.0.0.1:1080", "example.com:80").await?; println!("Connected via SOCKS5"); Ok(()) }
Debug
Known issues
gotchaRequires an async runtime like tokio or async-std.
fix
Add `tokio` with the `full` feature or `async-std` to your dependencies.
affects: >=0.5.0
Upgrade
Version history
0.6.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
55 hits · last 30 days
node
48
OpenAI (training)
1
Resources
async-socks5 — cargo add async-socks5 · libregistry