refractium 3.0.12

Extensible low-level reverse proxy for port multiplexing and protocol-based routing
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 = "refractium"
version = "3.0.12"
authors = ["SirCesarium"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Extensible low-level reverse proxy for port multiplexing and protocol-based routing"
homepage = "https://github.com/sircesarium/refractium"
documentation = "https://docs.rs/refractium"
readme = "README.md"
keywords = [
    "reverse-proxy",
    "multiplexer",
    "port-multiplexing",
    "protocol-routing",
    "tcp-proxy",
]
categories = [
    "network-programming",
    "web-programming",
]
license = "MIT"
repository = "https://github.com/sircesarium/refractium"

[features]
cli = [
    "dep:anyhow",
    "dep:clap",
    "dep:colored",
    "dep:toml",
    "dep:tracing",
    "dep:tracing-subscriber",
]
default = [
    "cli",
    "logging",
    "protocols",
    "watch",
]
full = [
    "cli",
    "logging",
    "protocols",
    "watch",
    "hooks",
]
hooks = []
logging = [
    "dep:tracing",
    "dep:tracing-subscriber",
]
proto-dns = []
proto-ftp = []
proto-http = []
proto-https = []
proto-ssh = []
protocols = [
    "proto-http",
    "proto-https",
    "proto-ssh",
    "proto-dns",
    "proto-ftp",
]
watch = ["dep:notify"]

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

[[bin]]
name = "refractium"
path = "src/main.rs"
required-features = [
    "cli",
    "logging",
]

[[test]]
name = "hook_test"
path = "tests/hook_test.rs"
required-features = ["hooks"]

[[test]]
name = "integration"
path = "tests/integration.rs"

[[bench]]
name = "protocol_bench"
path = "benches/protocol_bench.rs"
harness = false

[dependencies.anyhow]
version = "1"
optional = true

[dependencies.bytes]
version = "1"

[dependencies.clap]
version = "4.6"
features = [
    "derive",
    "std",
    "help",
    "usage",
    "error-context",
]
optional = true
default-features = false

[dependencies.colored]
version = "3"
optional = true

[dependencies.dashmap]
version = "6.2.1"

[dependencies.dyn-clone]
version = "1.0"

[dependencies.heck]
version = "0.5"

[dependencies.memchr]
version = "2.8"

[dependencies.notify]
version = "8.0"
features = ["macos_fsevent"]
optional = true
default-features = false

[dependencies.rand]
version = "0.10"

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

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "net",
    "io-util",
    "sync",
    "time",
    "signal",
    "macros",
    "rt",
    "rt-multi-thread",
]

[dependencies.tokio-util]
version = "0.7"

[dependencies.toml]
version = "1.1"
optional = true

[dependencies.tracing]
version = "0.1"
features = ["std"]
optional = true
default-features = false

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "fmt",
    "ansi",
    "std",
]
optional = true
default-features = false

[dev-dependencies.criterion]
version = "0.8"
features = [
    "async_tokio",
    "cargo_bench_support",
]
default-features = false

[lints.clippy]
absolute_paths = "deny"
expect_used = "deny"
unwrap_used = "deny"

[lints.clippy.all]
level = "deny"
priority = -1

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
panic = "abort"