-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
191 lines (157 loc) · 4.25 KB
/
Cargo.toml
File metadata and controls
191 lines (157 loc) · 4.25 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
[workspace]
resolver = "2"
members = [
"crates/octopus-core",
"crates/octopus-runtime",
"crates/octopus-router",
"crates/octopus-proxy",
"crates/octopus-farp",
"crates/octopus-discovery",
"crates/octopus-protocols",
"crates/octopus-middleware",
"crates/octopus-auth",
"crates/octopus-plugins",
"crates/octopus-scripting",
"crates/octopus-health",
"crates/octopus-admin",
"crates/octopus-config",
"crates/octopus-metrics",
"crates/octopus-state",
"octopus-cli",
"examples",
"plugins/auth-jwt",
"plugins/rate-limiter",
"plugins/cache-redis",
"plugins/kafka-producer",
]
[workspace.package]
version = "0.1.0"
edition = "2021"
rust-version = "1.75"
authors = ["Rex Raphael <rex@xraph.com>"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/xraph/octopus"
homepage = "https://octopus.io"
documentation = "https://docs.octopus.io"
keywords = ["api-gateway", "proxy", "farp", "kubernetes", "microservices"]
categories = ["web-programming", "network-programming", "api-bindings"]
[workspace.dependencies]
# Async runtime
tokio = { version = "1.35", features = ["full"] }
tokio-util = { version = "0.7", features = ["full"] }
futures = "0.3"
async-trait = "0.1"
# HTTP
hyper = { version = "1.1", features = ["full"] }
hyper-util = { version = "0.1", features = ["full"] }
http = "1.0"
http-body = "1.0"
http-body-util = "0.1"
tower = { version = "0.4", features = ["full"] }
tower-http = { version = "0.5", features = ["full"] }
axum = { version = "0.7", features = ["ws", "macros"] }
# gRPC
tonic = { version = "0.11", features = ["gzip", "tls"] }
tonic-reflection = "0.11"
prost = "0.12"
prost-types = "0.12"
# WebSocket
tokio-tungstenite = { version = "0.21", features = ["native-tls"] }
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_yaml = "0.9"
toml = "0.8"
# Discovery backends
kube = { version = "0.88", features = ["runtime", "derive"] }
k8s-openapi = { version = "0.21", features = ["latest"] }
consul = "0.5"
etcd-client = "0.13"
# OpenAPI/AsyncAPI
utoipa = { version = "4.2", features = ["axum_extras"] }
aide = { version = "0.12", features = ["axum"] }
# Configuration
config = { version = "0.14", features = ["yaml", "toml", "json"] }
# Error handling
anyhow = "1.0"
thiserror = "1.0"
# Logging & Tracing
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
tracing-opentelemetry = "0.23"
opentelemetry = { version = "0.22", features = ["metrics", "trace"] }
opentelemetry-otlp = { version = "0.15", features = ["grpc-tonic"] }
opentelemetry-semantic-conventions = "0.14"
# Metrics
prometheus = { version = "0.13", features = ["process"] }
metrics = "0.22"
metrics-exporter-prometheus = "0.14"
# Plugin system
libloading = "0.8"
# Scripting
rhai = { version = "1.17", features = ["sync", "serde", "no_std"] }
# Authentication
jsonwebtoken = "9.2"
argon2 = "0.5"
# Rate limiting
governor = "0.6"
# Redis
redis = { version = "0.24", features = ["tokio-comp", "connection-manager"] }
# Kafka
rdkafka = { version = "0.36", features = ["cmake-build"] }
# Security
sha2 = "0.10"
hmac = "0.12"
ring = "0.17"
rustls = "0.22"
rustls-native-certs = "0.7"
# Data structures
dashmap = "5.5"
arc-swap = "1.6"
parking_lot = "0.12"
# Time
chrono = { version = "0.4", features = ["serde"] }
# CLI
clap = { version = "4.5", features = ["derive", "env"] }
clap_complete = "4.5"
# Utilities
uuid = { version = "1.7", features = ["v4", "serde"] }
url = "2.5"
bytes = "1.5"
pin-project = "1.1"
once_cell = "1.19"
regex = "1.10"
semver = { version = "1.0", features = ["serde"] }
num_cpus = "1.16"
# Templates
askama = { version = "0.12", features = ["with-axum", "serde-json"] }
askama_axum = "0.4"
# File watching
notify = "6.1"
# Time utilities
humantime-serde = "1.1"
# Testing
mockall = "0.12"
criterion = { version = "0.5", features = ["html_reports", "async_tokio"] }
proptest = "1.4"
wiremock = "0.6"
tempfile = "3.8"
# Build dependencies
tonic-build = "0.11"
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
strip = true
panic = "abort"
[profile.bench]
inherits = "release"
strip = false
debug = true
[profile.dev]
opt-level = 0
debug = true
# Fast incremental builds
[profile.dev.package."*"]
opt-level = 2
debug = false