[package]
name = "dgate"
version = "2.1.0"
edition = "2021"
authors = ["DGate Team"]
description = "DGate API Gateway - High-performance API gateway with JavaScript module support"
license = "MIT"
repository = "https://github.com/dgate-io/dgate"
homepage = "https://github.com/dgate-io/dgate"
documentation = "https://docs.rs/dgate"
readme = "README.md"
keywords = ["api-gateway", "proxy", "javascript", "kv-storage", "reverse-proxy"]
categories = ["web-programming", "network-programming"]
include = [
"src/",
"config.dgate.yaml",
"README.md",
"LICENSE",
]
[lib]
name = "dgate"
path = "src/lib.rs"
[[bin]]
name = "dgate-server"
path = "src/main.rs"
[[bin]]
name = "dgate-cli"
path = "src/bin/dgate-cli.rs"
[[bin]]
name = "echo-server"
path = "src/bin/echo-server.rs"
required-features = ["perf-tools"]
[features]
default = []
perf-tools = []
[dependencies]
tokio = { version = "1.44", features = ["full"] }
axum = { version = "0.8", features = ["http2", "ws", "macros"] }
tower = { version = "0.5", features = ["util", "timeout", "limit"] }
tower-http = { version = "0.6", features = ["cors", "trace", "compression-gzip"] }
hyper = { version = "1.6", features = ["full"] }
hyper-util = { version = "0.1", features = ["full", "tokio", "server-auto"] }
http-body-util = "0.1"
hyper-rustls = { version = "0.27", features = ["http2", "ring"] }
reqwest = { version = "0.12", features = ["json", "rustls-tls", "gzip"] }
ring = "0.17"
tokio-tungstenite = "0.28"
futures-util = { version = "0.3", default-features = false, features = ["sink", "std"] }
h2 = "0.4"
bytes = "1.10"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_yaml = "0.9"
rquickjs = { version = "0.8", features = ["bindgen", "classes", "properties", "array-buffer", "macro"] }
redb = "3.1"
openraft = { version = "0.9", features = ["serde", "storage-v2"] }
config = "0.15"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
uuid = { version = "1.12", features = ["v4", "serde"] }
chrono = { version = "0.4", features = ["serde"] }
thiserror = "2.0"
anyhow = "1.0"
async-trait = "0.1"
parking_lot = "0.12"
dashmap = "6.1"
regex = "1.11"
glob = "0.3"
base64 = "0.22"
clap = { version = "4.5", features = ["derive", "env", "color"] }
url = { version = "2.5", features = ["serde"] }
rustls = { version = "0.23", features = ["ring"] }
tokio-rustls = "0.26"
rustls-pemfile = "2.2"
rand = "0.8"
colored = "3.1.1"
tabled = "0.20.0"
dialoguer = "0.12.0"
metrics = "0.24"
metrics-exporter-prometheus = "0.18.1"
[dev-dependencies]
tokio-test = "0.4"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1