refractium 1.1.0

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 = "1.1.0"
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"
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"

[[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"]
optional = true

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

[dependencies.dashmap]
version = "6.1.0"

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

[dependencies.memchr]
version = "2.8"

[dependencies.notify]
version = "8.0"
optional = true

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

[dependencies.thiserror]
version = "2"

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

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

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

[dependencies.tracing]
version = "0.1"
optional = true

[dependencies.tracing-subscriber]
version = "0.3"
optional = true

[dev-dependencies.criterion]
version = "0.8"
features = ["async_tokio"]

[dev-dependencies.rand]
version = "0.10"

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