-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
124 lines (103 loc) · 3.02 KB
/
Cargo.toml
File metadata and controls
124 lines (103 loc) · 3.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
[package]
name = "dgate"
version = "2.0.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",
]
# Library crate (for integration tests and embedding)
[lib]
name = "dgate"
path = "src/lib.rs"
# Main binaries to install
[[bin]]
name = "dgate-server"
path = "src/main.rs"
[[bin]]
name = "dgate-cli"
path = "src/bin/dgate-cli.rs"
# Utility binary (not installed by default)
[[bin]]
name = "echo-server"
path = "src/bin/echo-server.rs"
required-features = ["perf-tools"]
[features]
default = []
perf-tools = [] # Enable to build echo-server
[dependencies]
# Async runtime
tokio = { version = "1.44", features = ["full"] }
# Web framework
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"
# TLS and reverse proxy
hyper-rustls = { version = "0.27", features = ["http2", "ring"] }
reqwest = { version = "0.12", features = ["json", "rustls-tls", "gzip"] }
ring = "0.17"
# WebSocket support
tokio-tungstenite = "0.28"
futures-util = { version = "0.3", default-features = false, features = ["sink", "std"] }
# HTTP/2 h2c support for gRPC
h2 = "0.4"
bytes = "1.10"
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_yaml = "0.9"
# JavaScript engine - QuickJS via rquickjs
rquickjs = { version = "0.8", features = ["bindgen", "classes", "properties", "array-buffer", "macro"] }
# Storage
redb = "3.1"
# Raft consensus for cluster mode
openraft = { version = "0.9", features = ["serde", "storage-v2"] }
# Configuration
config = "0.15"
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
# Utilities
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"
# CLI-specific
colored = "3.1.1"
tabled = "0.20.0"
dialoguer = "0.12.0"
# Metrics
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