[package]
edition = "2024"
rust-version = "1.85"
name = "better-socks"
version = "0.1.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Asynchronous SOCKS proxy support for Rust"
homepage = "https://github.com/just-android/better-socks"
documentation = "https://docs.rs/better-socks"
readme = "README.md"
keywords = [
"tokio",
"async",
"proxy",
"socks",
"socks5",
]
categories = [
"asynchronous",
"network-programming",
]
license = "Apache-2.0"
repository = "https://github.com/just-android/better-socks"
[features]
tor = []
[lib]
name = "better_socks"
path = "src/lib.rs"
[[example]]
name = "chainproxy"
path = "examples/chainproxy.rs"
[[example]]
name = "socket"
path = "examples/socket.rs"
required-features = ["tor"]
[[example]]
name = "tor"
path = "examples/tor.rs"
required-features = ["tor"]
[[test]]
name = "common"
path = "tests/common.rs"
[[test]]
name = "long_username_password_auth"
path = "tests/long_username_password_auth.rs"
[[test]]
name = "no_auth"
path = "tests/no_auth.rs"
[[test]]
name = "username_auth"
path = "tests/username_auth.rs"
[dependencies.bytes]
version = "1"
[dependencies.either]
version = "1"
[dependencies.futures-core]
version = "0.3"
[dependencies.futures-sink]
version = "0.3"
[dependencies.futures-util]
version = "0.3"
features = ["std"]
default-features = false
[dependencies.pin-project]
version = "1"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"io-util",
"net",
]
[dependencies.tokio-util]
version = "0.7"
features = [
"codec",
"net",
]
[dev-dependencies.futures-executor]
version = "0.3"
[dev-dependencies.once_cell]
version = "1"
[dev-dependencies.tokio]
version = "1"
features = [
"rt",
"rt-multi-thread",
"time",
]