Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
114 lines (95 loc) · 2.4 KB
/
Copy pathCargo.toml
File metadata and controls
114 lines (95 loc) · 2.4 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
[workspace]
members = [
"crates/common",
"crates/common/db",
"crates/common/cache",
"crates/common/queue",
"crates/common/utils",
"crates/common/rate_limiter",
"crates/common/registry",
"crates/domain",
"crates/api",
"crates/api-gateway",
"crates/user-service",
"crates/wallet-service",
"crates/order-service",
"crates/risk-service",
"crates/portfolio-service",
"crates/matching-engine",
"crates/market-data-service",
"crates/prediction-market-service",
"crates/ws-market-data",
"crates/ws-order",
"crates/ws-prediction",
]
resolver = "2"
[workspace.package]
version = "0.1.0"
edition = "2021"
license = "MIT"
authors = ["CEX DEX Team"]
[workspace.dependencies]
# Async runtime
tokio = { version = "1.35", features = ["full"] }
# Web framework
salvo = { version = "0.69", features = ["affix", "cookie", "jwt-auth", "logging", "cors", "websocket", "session"] }
axum = "0.7"
hyper = { version = "1.2", features = ["full"] }
tower = "0.4"
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# Database
sqlx = { version = "0.7", features = ["runtime-tokio-rustls", "postgres", "mysql", "sqlite", "chrono"] }
# Redis
redis = { version = "0.24", features = ["tokio-comp", "connection-manager", "script"] }
# Kafka
rskafka = "0.5"
# Futures
futures = "0.3"
# Config
config = "0.14"
serde_yaml = "0.9"
# Message queue
tokio-postgres = "0.7"
rabbitmq = "0.5"
# Utils
chrono = { version = "0.4", features = ["serde"] }
thiserror = "1.0"
async-trait = "0.1"
uuid = { version = "1.6", features = ["v4", "serde"] }
decimals = "0.5"
rust_decimal = { version = "1.33", features = ["serde", "serde-with-str"] }
once_cell = "1.19"
parking_lot = "0.12"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Registry
registry = { path = "crates/common/registry" }
# HTTP client
reqwest = { version = "0.11", features = ["json"] }
# HTTP headers
headers = "0.3"
# WebSocket
tokio-tungstenite = "0.21"
futures-util = "0.3"
# gRPC
tonic = { version = "0.12", features = ["prost"] }
prost = "0.13"
prost-types = "0.13"
tonic-reflection = "0.12"
tonic-build = "0.12"
# Crypto
jsonwebtoken = "9.2"
aes-gcm = "0.10"
sha2 = "0.10"
hmac = "0.12"
rand = "0.8"
base64 = "0.22"
hex = "0.4"
k256 = { version = "0.13", features = ["ecdsa", "std"] }
sha3 = "0.10"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1