Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
200 lines (162 loc) · 4.34 KB
/
Copy pathCargo.toml
File metadata and controls
200 lines (162 loc) · 4.34 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
190
191
192
193
194
195
196
197
198
199
200
[package]
name = "ccxt-rust"
version = "0.1.5"
edition = "2024"
rust-version = "1.91"
authors = ["Praying"]
license = "MIT"
description = "Cryptocurrency exchange trading library in Rust"
repository = "https://github.com/Praying/ccxt-rust"
keywords = ["cryptocurrency", "exchange", "trading", "api", "bitcoin"]
categories = ["api-bindings", "finance"]
[workspace]
members = [
".",
"ccxt-core",
"ccxt-exchanges",
]
resolver = "2"
[workspace.dependencies]
# Async runtime
tokio = { version = "1.35", features = ["full"] }
tokio-util = { version = "0.7" }
futures = "0.3"
futures-util = "0.3"
async-trait = "0.1"
# HTTP & WebSocket
reqwest = { version = "0.13", default-features = false, features = ["json", "rustls", "gzip", "stream"] }
tokio-tungstenite = { version = "0.28", default-features = false, features = ["rustls-tls-native-roots", "connect"] }
ratatui = "0.30.2"
crossterm = { version = "0.29.0", features = ["event-stream"] }
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
sonic-rs = "0.5.8"
# Error handling
thiserror = "2.0.17"
anyhow = "1.0"
# Decimal precision
rust_decimal = "1.39"
rust_decimal_macros = "1.39"
# Cryptography
hmac = "0.12"
sha2 = "0.10"
sha1 = "0.10"
sha3 = "0.10"
md-5 = "0.10"
hex = "0.4"
base64 = "0.22"
# rsa = "0.9.6"
ed25519-dalek = "2.1"
rand = "0.9"
k256 = { version = "0.13", features = ["ecdsa"] }
# Logging & Tracing
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt", "json"] }
# Time handling
chrono = { version = "0.4", features = ["serde"] }
# Collections & Concurrency
dashmap = "6.1"
indexmap = { version = "2.1", features = ["serde"] }
once_cell = "1.19"
parking_lot = "0.12"
# Utility
url = "2.5"
urlencoding = "2.1"
regex = "1.10"
bitflags = "2.9"
# Security
zeroize = { version = "1.8", features = ["derive"] }
# Configuration
config = "0.15"
# Rate limiting
governor = "0.10"
nonzero_ext = "0.3"
# Development dependencies
tokio-test = "0.4"
criterion = { version = "0.8", features = ["async_tokio"] }
wiremock = "0.6"
proptest = "1.4"
mockito = "1.2"
paste = "1.0"
dotenvy = "0.15"
envy = "0.4"
[dependencies]
# Workspace members
ccxt-core = { path = "ccxt-core", version = "0.1.5" }
ccxt-exchanges = { path = "ccxt-exchanges", version = "0.1.5" }
# Async runtime
tokio = { workspace = true }
tokio-util = { workspace = true }
futures-util = { workspace = true }
tokio-tungstenite = { workspace = true }
# Error handling (for examples)
anyhow = { workspace = true }
# Serialization
serde = { workspace = true }
serde_json = { workspace = true }
sonic-rs = { workspace = true }
# Terminal benchmark UI
ratatui = { workspace = true }
crossterm = { workspace = true }
# Decimal precision
rust_decimal = { workspace = true }
rust_decimal_macros = { workspace = true }
# Time handling
chrono = { workspace = true }
# Collections
dashmap = { workspace = true }
indexmap = { workspace = true }
# Logging and tracing
tracing = { workspace = true }
tracing-subscriber = { workspace = true, features = ["env-filter"] }
# Rate limiting
governor = { workspace = true }
nonzero_ext = { workspace = true }
# Configuration
config = { workspace = true }
dotenvy = { workspace = true }
envy = { workspace = true }
# Utility
once_cell = { workspace = true }
parking_lot = { workspace = true }
url = { workspace = true }
regex = { workspace = true }
paste = { workspace = true }
[dev-dependencies]
tokio-test = { workspace = true }
criterion = { workspace = true }
mockito = { workspace = true }
proptest = { workspace = true }
wiremock = { workspace = true }
paste = { workspace = true }
futures = { workspace = true }
[features]
default = ["rest", "websocket", "rustls-tls"]
# TLS implementations (mutually exclusive)
rustls-tls = ["ccxt-core/rustls-tls", "ccxt-exchanges/rustls-tls"]
native-tls = ["ccxt-core/native-tls", "ccxt-exchanges/native-tls"]
# Protocol support
rest = []
websocket = ["ccxt-core/websocket", "ccxt-exchanges/websocket"]
# Optional features
compression = ["ccxt-core/compression"]
test-utils = ["ccxt-core/test-utils"]
# Complete feature set
full = ["rest", "websocket", "compression"]
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
strip = true
[profile.bench]
inherits = "release"
# [[bench]]
# name = "orderbook"
# harness = false
[[bench]]
name = "binance_ingress"
harness = false
[[bench]]
name = "binance_kline_1s_top10"
harness = false