http-mitm-proxy 0.18.0

A HTTP proxy server library intended to be a backend of application like Burp proxy.
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 = "http-mitm-proxy"
version = "0.18.0"
authors = ["hatoo <hato2000@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A HTTP proxy server library intended to be a backend of application like Burp proxy."
readme = "README.md"
keywords = [
    "http",
    "proxy",
    "http-proxy",
]
categories = [
    "network-programming",
    "web-programming::http-server",
]
license = "MIT"
repository = "https://github.com/hatoo/http-mitm-proxy"
resolver = "2"

[features]
default = ["native-tls-client"]
native-tls-client = [
    "dep:native-tls",
    "dep:tokio-native-tls",
]
rustls-client = ["dep:webpki-roots"]

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

[[example]]
name = "dev_proxy"
path = "examples/dev_proxy.rs"

[[example]]
name = "https"
path = "examples/https.rs"

[[example]]
name = "proxy"
path = "examples/proxy.rs"

[[example]]
name = "reqwest_proxy"
path = "examples/reqwest_proxy.rs"

[[example]]
name = "websocket"
path = "examples/websocket.rs"

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

[dependencies.bytes]
version = "1.7.1"

[dependencies.futures]
version = "0.3.29"

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

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

[dependencies.hyper-util]
version = "0.1.11"
features = ["tokio"]

[dependencies.moka]
version = "0.12.8"
features = ["sync"]

[dependencies.native-tls]
version = "0.2.12"
features = ["alpn"]
optional = true

[dependencies.rcgen]
version = "0.14.3"

[dependencies.thiserror]
version = "2.0.12"

[dependencies.tokio]
version = "1.44.1"
features = [
    "macros",
    "rt",
    "rt-multi-thread",
    "parking_lot",
    "io-util",
    "net",
]

[dependencies.tokio-native-tls]
version = "0.3.1"
optional = true

[dependencies.tokio-rustls]
version = "0.26.1"

[dependencies.tracing]
version = "0.1.40"

[dependencies.webpki-roots]
version = "1.0.1"
optional = true

[dev-dependencies.axum]
version = "0.8.3"
features = ["http2"]

[dev-dependencies.clap]
version = "4.5.35"
features = ["derive"]

[dev-dependencies.ctor]
version = "0.6.1"

[dev-dependencies.rcgen]
version = "0.14.3"
features = [
    "x509-parser",
    "pem",
]

[dev-dependencies.reqwest]
version = "0.13.1"

[dev-dependencies.rustls-pki-types]
version = "1.12.0"

[dev-dependencies.tracing-subscriber]
version = "0.3.18"
features = ["env-filter"]

[dev-dependencies.winnow]
version = "0.7.4"