2024-02-28 05:25:44 +01:00
|
|
|
[package]
|
|
|
|
name = "pingora-proxy"
|
2024-07-12 20:01:07 +02:00
|
|
|
version = "0.3.0"
|
2024-02-28 05:25:44 +01:00
|
|
|
authors = ["Yuchen Wu <yuchen@cloudflare.com>"]
|
|
|
|
license = "Apache-2.0"
|
|
|
|
edition = "2021"
|
|
|
|
repository = "https://github.com/cloudflare/pingora"
|
|
|
|
categories = ["asynchronous", "network-programming"]
|
|
|
|
keywords = ["async", "http", "proxy", "pingora"]
|
|
|
|
exclude = ["tests/*"]
|
|
|
|
description = """
|
|
|
|
Pingora HTTP proxy APIs and traits.
|
|
|
|
"""
|
|
|
|
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[lib]
|
|
|
|
name = "pingora_proxy"
|
|
|
|
path = "src/lib.rs"
|
|
|
|
|
|
|
|
[dependencies]
|
2024-07-12 20:01:07 +02:00
|
|
|
pingora-error = { version = "0.3.0", path = "../pingora-error" }
|
|
|
|
pingora-core = { version = "0.3.0", path = "../pingora-core", default-features = false }
|
|
|
|
pingora-timeout = { version = "0.3.0", path = "../pingora-timeout" }
|
|
|
|
pingora-cache = { version = "0.3.0", path = "../pingora-cache", default-features = false }
|
2024-02-28 05:25:44 +01:00
|
|
|
tokio = { workspace = true, features = ["macros", "net"] }
|
2024-07-12 20:01:07 +02:00
|
|
|
pingora-http = { version = "0.3.0", path = "../pingora-http" }
|
2024-02-28 05:25:44 +01:00
|
|
|
http = { workspace = true }
|
|
|
|
futures = "0.3"
|
|
|
|
bytes = { workspace = true }
|
|
|
|
async-trait = { workspace = true }
|
|
|
|
log = { workspace = true }
|
|
|
|
h2 = { workspace = true }
|
|
|
|
once_cell = { workspace = true }
|
2024-05-17 23:02:48 +02:00
|
|
|
clap = { version = "3.2.25", features = ["derive"] }
|
2024-02-28 05:25:44 +01:00
|
|
|
regex = "1"
|
|
|
|
|
|
|
|
[dev-dependencies]
|
|
|
|
reqwest = { version = "0.11", features = [
|
|
|
|
"gzip",
|
|
|
|
"rustls",
|
|
|
|
], default-features = false }
|
|
|
|
tokio-test = "0.4"
|
|
|
|
env_logger = "0.9"
|
|
|
|
hyper = "0.14"
|
|
|
|
tokio-tungstenite = "0.20.1"
|
2024-08-02 22:13:28 +02:00
|
|
|
pingora-limits = { version = "0.3.0", path = "../pingora-limits" }
|
2024-07-12 20:01:07 +02:00
|
|
|
pingora-load-balancing = { version = "0.3.0", path = "../pingora-load-balancing" }
|
2024-02-28 05:25:44 +01:00
|
|
|
prometheus = "0"
|
|
|
|
futures-util = "0.3"
|
2024-03-15 23:40:44 +01:00
|
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
|
|
serde_json = "1.0"
|
2024-03-11 04:30:10 +01:00
|
|
|
serde_yaml = "0.8"
|
|
|
|
|
2024-08-24 00:25:44 +02:00
|
|
|
[target.'cfg(unix)'.dev-dependencies]
|
|
|
|
hyperlocal = "0.8"
|
|
|
|
|
2024-03-11 04:30:10 +01:00
|
|
|
[features]
|
|
|
|
default = ["openssl"]
|
|
|
|
openssl = ["pingora-core/openssl", "pingora-cache/openssl"]
|
|
|
|
boringssl = ["pingora-core/boringssl", "pingora-cache/boringssl"]
|
2024-07-26 19:23:14 +02:00
|
|
|
|
|
|
|
# or locally cargo doc --config "build.rustdocflags='--cfg doc_async_trait'"
|
|
|
|
[package.metadata.docs.rs]
|
|
|
|
rustdoc-args = ["--cfg", "doc_async_trait"]
|
|
|
|
|
|
|
|
[lints.rust]
|
|
|
|
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(doc_async_trait)'] }
|