brainwires-proxy 0.6.0

Protocol-agnostic proxy framework for debugging app traffic
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"
rust-version = "1.91"
name = "brainwires-proxy"
version = "0.6.0"
authors = ["Brainwires"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Protocol-agnostic proxy framework for debugging app traffic"
homepage = "https://github.com/Brainwires/brainwires-framework"
documentation = "https://docs.rs/brainwires-proxy"
readme = "README.md"
keywords = [
    "proxy",
    "debugging",
    "traffic",
    "http",
    "protocol",
]
categories = [
    "network-programming",
    "development-tools::debugging",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Brainwires/brainwires-framework"
resolver = "2"

[features]
default = ["http"]
full = [
    "http",
    "websocket",
    "tls",
    "inspector-api",
]
http = [
    "dep:hyper",
    "dep:hyper-util",
    "dep:http-body-util",
]
inspector-api = ["http"]
tls = [
    "dep:tokio-rustls",
    "dep:rustls-pemfile",
]
websocket = ["dep:tokio-tungstenite"]

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

[[example]]
name = "anthropic_openai_proxy"
path = "examples/anthropic_openai_proxy/main.rs"
required-features = ["http"]

[dependencies.anyhow]
version = "1"

[dependencies.async-stream]
version = "0.3"

[dependencies.async-trait]
version = "0.1"

[dependencies.bytes]
version = "1"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.futures]
version = "0.3"

[dependencies.http]
version = "1.1"

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

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

[dependencies.hyper-util]
version = "0.1"
features = [
    "tokio",
    "server-auto",
    "client-legacy",
]
optional = true

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

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

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

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

[dependencies.tokio-tungstenite]
version = "0.26"
features = ["native-tls"]
optional = true

[dependencies.tracing]
version = "0.1"

[dependencies.url]
version = "2.5"

[dependencies.uuid]
version = "1"
features = [
    "v4",
    "serde",
]

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

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

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

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.tokio]
version = "1.43"
features = [
    "full",
    "test-util",
]

[dev-dependencies.tracing-subscriber]
version = "0.3"