[package]
edition = "2024"
name = "trojan-core"
version = "0.3.0"
authors = ["0x72757374 <257538187+0x72757374@users.noreply.github.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core types and constants for trojan-rs"
homepage = "https://github.com/trojan-rs/trojan-rs"
documentation = "https://docs.rs/trojan"
readme = "README.md"
keywords = [
"trojan",
"proxy",
]
categories = ["network-programming"]
license = "GPL-3.0-only"
repository = "https://github.com/trojan-rs/trojan-rs"
resolver = "2"
[features]
default = []
ws = [
"tokio-tungstenite",
"futures-util",
]
[lib]
name = "trojan_core"
path = "src/lib.rs"
[[bench]]
name = "io"
path = "benches/io.rs"
harness = false
[dependencies.bytes]
version = "1"
[dependencies.futures-util]
version = "0.3"
optional = true
[dependencies.tokio]
version = "1"
features = [
"io-util",
"time",
"macros",
"sync",
]
[dependencies.tokio-tungstenite]
version = "0.24"
optional = true
[dev-dependencies.criterion]
version = "0.5"
features = ["async_tokio"]
[dev-dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"io-util",
"time",
"sync",
]