# 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 = "2024"
name = "borer-core"
version = "0.5.8"
authors = ["Borer <borerxp@outlook.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "network borer"
readme = "README.md"
keywords = [
    "socks5",
    "proxy",
    "network",
    "trojan",
    "borer",
]
categories = [
    "network-programming",
    "asynchronous",
]
license = "GPL-3.0-or-later"
repository = "https://github.com/borerxp/borer-core"

[features]
axum = ["dep:axum"]
stats = [
    "serde_json",
    "tiny_http",
]
websocket = ["tokio-tungstenite"]

[lib]
name = "borer_core"
path = "src/lib.rs"

[dependencies.anyhow]
version = "1"

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

[dependencies.axum]
version = "0.8"
features = ["ws"]
optional = true
default-features = false

[dependencies.bytes]
version = "1.4.0"
features = ["std"]
default-features = false

[dependencies.dashmap]
version = "6.1"

[dependencies.futures]
version = "0.3"

[dependencies.log]
version = "0.4"
features = ["kv_unstable_serde"]

[dependencies.once_cell]
version = "1.21"

[dependencies.rand]
version = "0.9"

[dependencies.rustls]
version = "0.23"

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

[dependencies.serde_json]
version = "1.0.96"
optional = true

[dependencies.socks5-proto]
version = "0.4.1"

[dependencies.tiny_http]
version = "0.12"
optional = true

[dependencies.tokio]
version = "1"
features = ["full"]

[dependencies.tokio-rustls]
version = "0.26"

[dependencies.tokio-tungstenite]
version = "0.26"
features = ["rustls-tls-webpki-roots"]
optional = true

[dependencies.uuid]
version = "1.5.0"
features = ["v4"]

[dependencies.webpki-roots]
version = "0.26"

[dev-dependencies.tempfile]
version = "3"
