-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
94 lines (73 loc) · 1.96 KB
/
Copy pathCargo.toml
File metadata and controls
94 lines (73 loc) · 1.96 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
[package]
name = "pingpong"
version = "0.2.0"
edition = "2021"
[workspace]
[dependencies]
rustc-hash = "2.0"
dotenvy = "0.15"
# Async runtime
tokio = { version = "1.35", features = ["full"] }
# WebSocket client
tokio-tungstenite = { version = "0.24", features = ["native-tls"] }
url = "2.5"
tungstenite = "0.24"
memchr = "2.7"
futures-util = { version = "0.3", default-features = false, features = ["std", "tokio-io"] }
# HTTP client
reqwest = { version = "0.12", features = ["json", "rustls-tls", "http2"] }
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Error handling
anyhow = "1.0"
# Time
chrono = { version = "0.4", features = ["serde"] }
# Share state
parking_lot = "0.12"
dashmap = "6"
# Polymarket SDK (Phase 2: Order execution)
# Note: 'clob' feature not available in 0.3.x - using core functionality
polymarket-client-sdk = { version = "0.3", features = ["ws", "tracing"] }
# Alloy for signing (required by polymarket-client-sdk)
alloy = { version = "1.7", features = ["sol-types", "signer-local"] }
# Direct alloy crates for signing
alloy-primitives = "1.5"
alloy-sol-types = "1.5"
alloy-signer = "1.0"
alloy-signer-local = "1.0"
# Secrets management
secrecy = "0.8"
# Rust decimal for precise pricing
rust_decimal = { version = "1.33", features = ["serde"] }
rust_decimal_macros = "1.33"
simd-json = "0.14"
# Latency optimization
crossbeam-channel = "0.5"
minstant = "0.1"
core_affinity = "0.8"
libc = "0.2"
rand = "0.8"
# Signing and auth
hex = "0.4"
base64 = "0.22"
hmac = "0.12"
sha2 = "0.10"
[[bin]]
name = "hft_pingpong"
path = "src/bin/hft_pingpong.rs"
[[bin]]
name = "pingpong"
path = "src/main.rs"
# Direct alloy crates for signing
alloy-primitives = "1.5"
alloy-sol-types = "1.5"
alloy-signer = "1.0"
alloy-signer-local = "1.0"
[[bin]]
name = "hft_pingpong_integrated"
path = "src/bin/hft_pingpong_integrated.rs"
# HFT optimizations