noxy 0.0.7

HTTP forward and reverse proxy with a pluggable tower middleware pipeline
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 = "noxy"
version = "0.0.7"
authors = ["Rodrigo Navarro <rnavarro@rnavarro.com.br>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HTTP forward and reverse proxy with a pluggable tower middleware pipeline"
readme = "README.md"
keywords = [
    "proxy",
    "tls",
    "mitm",
    "middleware",
    "reverse-proxy",
]
categories = ["network-programming"]
license = "MIT"
repository = "https://github.com/reu/noxy"

[features]
cli = [
    "clap",
    "config",
    "tracing-subscriber",
    "miette/fancy",
]
config = [
    "dep:knus",
    "dep:miette",
]
redis = ["dep:redis"]
scripting = [
    "deno_core",
    "deno_ast",
    "deno_error",
    "serde",
]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1"

[dependencies.async-compression]
version = "0.4"
features = [
    "tokio",
    "gzip",
    "brotli",
    "zstd",
    "deflate",
]

[dependencies.base64]
version = "0.22"

[dependencies.bytes]
version = "1"

[dependencies.clap]
version = "4"
features = ["derive"]
optional = true

[dependencies.deno_ast]
version = "0.53"
features = ["transpiling"]
optional = true

[dependencies.deno_core]
version = "0.385"
optional = true

[dependencies.deno_error]
version = "0.7"
optional = true

[dependencies.futures-util]
version = "0.3"

[dependencies.globset]
version = "0.4"

[dependencies.http]
version = "1"

[dependencies.http-body]
version = "1"

[dependencies.http-body-util]
version = "0.1"

[dependencies.hyper]
version = "1"
features = [
    "server",
    "client",
    "http1",
    "http2",
]

[dependencies.hyper-util]
version = "0.1"
features = [
    "tokio",
    "service",
    "server-auto",
    "client-legacy",
    "http1",
    "http2",
]

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

[dependencies.matchit]
version = "0.8"

[dependencies.miette]
version = "7"
optional = true

[dependencies.rand]
version = "0.9"

[dependencies.redis]
version = "0.27"
features = [
    "tokio-comp",
    "connection-manager",
]
optional = true

[dependencies.regex]
version = "1"

[dependencies.rustls]
version = "0.23"
features = [
    "std",
    "tls12",
    "ring",
]
default-features = false

[dependencies.rustls-mitm]
version = "0.1"

[dependencies.rustls-pemfile]
version = "2"

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

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

[dependencies.tokio-rustls]
version = "0.26"
features = [
    "ring",
    "tls12",
    "logging",
]
default-features = false

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

[dependencies.tower]
version = "0.5"
features = [
    "util",
    "buffer",
]

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "json",
]
optional = true

[dependencies.webpki-roots]
version = "0.26"

[dev-dependencies.axum]
version = "0.8"
features = ["ws"]

[dev-dependencies.axum-server]
version = "0.7"
features = ["tls-rustls"]

[dev-dependencies.brotli]
version = "7"

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

[dev-dependencies.flate2]
version = "1"

[dev-dependencies.futures-util]
version = "0.3"

[dev-dependencies.rcgen]
version = "0.13"
features = ["x509-parser"]

[dev-dependencies.reqwest]
version = "0.12"
features = [
    "rustls-tls",
    "stream",
]

[dev-dependencies.rustls]
version = "0.23"
features = ["ring"]

[dev-dependencies.testcontainers]
version = "0.26"

[dev-dependencies.testcontainers-modules]
version = "0.14"
features = ["redis"]

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

[dev-dependencies.tokio-tungstenite]
version = "0.26"

[dev-dependencies.zstd]
version = "0.13"