tokio-multi-proxy 0.1.2

A modular async proxy with TLS/mTLS and multiple transport support
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 = "2021"
name = "tokio-multi-proxy"
version = "0.1.2"
authors = ["Ahmed Masud <ahmed.masud@saf.ai>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A modular async proxy with TLS/mTLS and multiple transport support"
homepage = "https://github.com/ahmed-masud/tokio-multi-proxy"
documentation = "https://docs.rs/tokio-multi-proxy"
readme = "README.md"
keywords = [
    "proxy",
    "tokio",
    "tls",
    "mtls",
    "networking",
]
categories = [
    "network-programming",
    "asynchronous",
    "command-line-utilities",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/ahmed-masud/tokio-multi-proxy"

[package.metadata.docs.rs]
all-features = true
features = [
    "tls",
    "mtls",
]
rustc-args = [
    "--cfg",
    "docsrs",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]
toolchain = "nightly"

[features]
default = ["passthrough"]
mtls = ["tls"]
passthrough = []
tls = [
    "dep:tokio-rustls",
    "dep:rustls",
    "dep:rustls-pemfile",
]

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

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

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

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

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.rustls]
version = "0.23"
optional = true

[dependencies.rustls-pemfile]
version = "2.2"
optional = true

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

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