# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "socks5-impl"
version = "0.5.10"
authors = ["ssrlive <ssrlivebox@gmail.com>"]
description = "Fundamental abstractions and async read / write functions for SOCKS5 protocol and Relatively low-level asynchronized SOCKS5 server implementation based on tokio"
readme = "README.md"
keywords = [
    "socks5",
    "socks",
    "proxy",
    "async",
    "network",
]
categories = [
    "network-programming",
    "asynchronous",
]
license = "GPL-3.0-or-later"
repository = "https://github.com/ssrlive/socks5-impl"

[[example]]
name = "demo-client"
path = "examples/demo-client.rs"
required-features = ["tokio"]

[[example]]
name = "demo-server"
path = "examples/demo-server.rs"
required-features = ["tokio"]

[[example]]
name = "dns-query"
path = "examples/dns-query.rs"
required-features = ["tokio"]

[[example]]
name = "dns2socks"
path = "examples/dns2socks.rs"
required-features = ["tokio"]

[[example]]
name = "s5-server"
path = "examples/s5-server.rs"
required-features = ["tokio"]

[[example]]
name = "udp-client"
path = "examples/udp-client.rs"
required-features = ["tokio"]

[dependencies.as-any]
version = "0.3"

[dependencies.async-trait]
version = "0.1"

[dependencies.byteorder]
version = "1.5"

[dependencies.bytes]
version = "1.5"

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.thiserror]
version = "1.0"

[dependencies.tokio]
version = "1.36"
features = ["full"]
optional = true

[dev-dependencies.clap]
version = "4.5"
features = ["derive"]

[dev-dependencies.ctrlc2]
version = "3.5"
features = [
    "tokio",
    "termination",
]

[dev-dependencies.dotenvy]
version = "0.15"

[dev-dependencies.env_logger]
version = "0.11"

[dev-dependencies.log]
version = "0.4"

[dev-dependencies.moka]
version = "0.12"
features = ["future"]

[dev-dependencies.rand]
version = "0.8"

[dev-dependencies.tokio]
version = "1.36"
features = [
    "macros",
    "rt-multi-thread",
]

[dev-dependencies.trust-dns-proto]
version = "0.23"

[features]
default = ["tokio"]
tokio = ["dep:tokio"]
