lingxia-proxy 0.6.0

Local HTTP CONNECT proxy with PAC routing and optional MITM capture
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 = "lingxia-proxy"
version = "0.6.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Local HTTP CONNECT proxy with PAC routing and optional MITM capture"
readme = "README.md"
license = "MIT"
repository = "https://github.com/LingXia-Dev/LingXia"
resolver = "2"

[features]
capture = [
    "dep:rcgen",
    "dep:rustls",
    "dep:rustls-native-certs",
    "dep:tokio-rustls",
    "dep:httparse",
    "dep:base64",
]
default = []
rule-list-routing = [
    "dep:base64",
    "dep:tokio-native-tls",
    "dep:native-tls",
]

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

[dependencies.base64]
version = "0.22.1"
optional = true

[dependencies.fast-socks5]
version = "0.9"

[dependencies.http]
version = "1.3.1"

[dependencies.httparse]
version = "1.9"
optional = true

[dependencies.log]
version = "0.4.29"

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

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

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

[dependencies.rustls-native-certs]
version = "0.8"
optional = true

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

[dependencies.thiserror]
version = "2.0.16"

[dependencies.tokio]
version = "1.0"
features = [
    "rt",
    "time",
    "macros",
    "sync",
    "net",
    "io-util",
]

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

[dependencies.tokio-rustls]
version = "0.26"
optional = true