[package]
name = "borer-core"
version = "0.5.8"
edition = "2024"
authors = ["Borer <borerxp@outlook.com>"]
description = "network borer"
categories = ["network-programming", "asynchronous"]
keywords = ["socks5", "proxy", "network", "trojan", "borer"]
readme = "README.md"
license = "GPL-3.0-or-later"
repository = "https://github.com/borerxp/borer-core"

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


[dependencies]
socks5-proto = { version="0.4.1" }

log = {version="0.4", features=["kv_unstable_serde"]}
anyhow = { version = "1" }

tokio = { version = "1", features=["full"]}
rustls = "0.23"
tokio-rustls = "0.26"
webpki-roots = "0.26"

serde = { version = "1.0.163", features = ["derive"]}
bytes = {version="1.4.0" , default-features = false, features=["std"]}
futures= { version = "0.3"}
async-trait = "0.1"

once_cell = "1.21"
dashmap = "6.1"

rand = "0.9"
uuid = {version="1.5.0", features=["v4"]}


tokio-tungstenite = {version="0.26", features=["rustls-tls-webpki-roots"],optional=true}
axum = { version="0.8", default-features=false, features=["ws"], optional=true }
serde_json ={ version="1.0.96", optional=true} 
tiny_http = { version= "0.12", optional=true} 

[dev-dependencies]
tempfile = "3" 
