trojan-core 0.3.0

Core types and constants for trojan-rs
Documentation
# 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 = "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",
]