-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCargo.toml
258 lines (250 loc) · 11.3 KB
/
Cargo.toml
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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
[profile.release-with-debug]
inherits = "release"
debug = true
split-debuginfo = "packed"
[workspace]
members = [
"geyser-grpc-proto",
"programs/magicblock",
"magicblock-account-cloner",
"magicblock-account-dumper",
"magicblock-account-fetcher",
"magicblock-account-updates",
"magicblock-accounts",
"magicblock-accounts-api",
"magicblock-accounts-db",
"magicblock-api",
"magicblock-bank",
"magicblock-config",
"magicblock-core",
"magicblock-geyser-plugin",
"magicblock-ledger",
"magicblock-messaging",
"magicblock-metrics",
"magicblock-mutator",
"magicblock-perf-service",
"magicblock-processor",
"magicblock-pubsub",
"magicblock-rpc",
"magicblock-streamer",
"magicblock-tokens",
"magicblock-transaction-status",
"magicblock-version",
"solana/accounts-db",
"solana/storage-proto",
"test-bins",
"test-tools",
"test-tools-core",
"utils/expiring-hashmap",
]
# This prevents a Travis CI error when building for Windows.
resolver = "2"
[workspace.package]
version = "1.19.0" # matches Solana Version
authors = ["MagicBlock Maintainers <maintainers@magicblock.gg>"]
repository = "https://github.com/magicblock-labs/x-validator"
homepage = "https://www.magicblock.gg"
license = "Apache-2.0"
edition = "2021"
[workspace.dependencies]
anyhow = "1.0.81"
arrayref = "0.3.7"
assert_matches = "1.5.0"
async-trait = "0.1.77"
base64 = "0.21.7"
bincode = "1.3.3"
bs58 = "0.4.0"
byteorder = "1.5.0"
cargo-lock = "9.0.0"
expiring-hashmap = { path = "./utils/expiring-hashmap" }
conjunto-transwise = { path = "../ephemeral-conjunto/transwise" }
console-subscriber = "0.2.0"
crossbeam-channel = "0.5.11"
csv = "1.3.0"
eager = "0.1.0"
enum-iterator = "1.5.0"
env_logger = "0.11.2"
magicblock-delegation-program = { version = "0.0.0" }
fd-lock = "4.0.2"
fs_extra = "1.3.0"
futures-util = "0.3.30"
geyser-grpc-proto = { path = "./geyser-grpc-proto" }
git-version = "0.3.9"
histogram = "0.6.9"
hostname = "0.4.0"
http-body-util = "0.1.2"
hyper = "1.4.1"
hyper-util = "0.1.9"
itertools = "0.10.5"
json5 = "0.4.1"
jsonrpc-core = "18.0.0"
jsonrpc-core-client = "18.0.0"
jsonrpc-derive = "18.0.0"
jsonrpc-http-server = "18.0.0"
jsonrpc-pubsub = "18.0.0"
jsonrpc-ws-server = "18.0.0"
lazy_static = "1.4.0"
libc = "0.2.153"
libloading = "0.7.4"
libsecp256k1 = "0.6.0"
log = "0.4.20"
min-max-heap = "1.3.0"
num_cpus = "1.16.0"
num-derive = "0.4"
num-traits = "0.2"
percentage = "0.1.0"
prio-graph = "0.2.1"
prometheus = "0.13.4"
prost = "0.12.3"
rand = "0.8.5"
rayon = "1.8.1"
rustc_version = "0.4"
semver = "1.0.22"
serde = "1.0.196"
serde_derive = "1.0.103"
serde_json = "1.0.113"
magicblock-account-cloner = { path = "./magicblock-account-cloner" }
magicblock-account-dumper = { path = "./magicblock-account-dumper" }
magicblock-account-fetcher = { path = "./magicblock-account-fetcher" }
magicblock-account-updates = { path = "./magicblock-account-updates" }
magicblock-accounts = { path = "./magicblock-accounts" }
magicblock-accounts-api = { path = "./magicblock-accounts-api" }
magicblock-accounts-db = { path = "./magicblock-accounts-db" }
magicblock-api = { path = "./magicblock-api" }
magicblock-bank = { path = "./magicblock-bank" }
magicblock-config = { path = "./magicblock-config" }
magicblock-core = { path = "./magicblock-core" }
magicblock-geyser-plugin = { path = "./magicblock-geyser-plugin" }
magicblock-ledger = { path = "./magicblock-ledger" }
magicblock-messaging = { path = "./magicblock-messaging" }
magicblock-metrics = { path = "./magicblock-metrics" }
magicblock-mutator = { path = "./magicblock-mutator" }
magicblock-perf-service = { path = "./magicblock-perf-service" }
magicblock-processor = { path = "./magicblock-processor" }
magicblock-program = { path = "./programs/magicblock" }
magicblock-pubsub = { path = "./magicblock-pubsub" }
magicblock-rpc = { path = "./magicblock-rpc" }
magicblock-rpc-sender = { path = "./magicblock-rpc-sender" }
magicblock-tokens = { path = "./magicblock-tokens" }
magicblock-streamer = { path = "./magicblock-streamer" }
magicblock-transaction-status = { path = "./magicblock-transaction-status" }
magicblock-version = { path = "./magicblock-version" }
solana-accounts-db = { path = "./solana/accounts-db", version = "1.19.0" }
solana-account-decoder = { git = "https://github.com/solana-labs/solana", rev = "30adda4a71", package = "solana-account-decoder", version = "1.19.0" }
solana-address-lookup-table-program = { git = "https://github.com/solana-labs/solana", rev = "30adda4a71", package = "solana-address-lookup-table-program", version = "1.19.0" }
solana-bpf-loader-program = { git = "https://github.com/solana-labs/solana", rev = "30adda4a71", package = "solana-bpf-loader-program", version = "1.19.0" }
solana-compute-budget-program = { git = "https://github.com/solana-labs/solana", rev = "30adda4a71", package = "solana-compute-budget-program", version = "1.19.0" }
solana-cost-model = { git = "https://github.com/solana-labs/solana", rev = "30adda4a71", package = "solana-cost-model", version = "1.19.0" }
solana-frozen-abi = { git = "https://github.com/solana-labs/solana", rev = "30adda4a71", package = "solana-frozen-abi", version = "1.19.0" }
solana-frozen-abi-macro = { git = "https://github.com/solana-labs/solana", rev = "30adda4a71", package = "solana-frozen-abi-macro", version = "1.19.0" }
solana-geyser-plugin-interface = { git = "https://github.com/solana-labs/solana", rev = "30adda4a71", package = "solana-geyser-plugin-interface", version = "1.19.0" }
solana-geyser-plugin-manager = { path = "./solana/geyser-plugin-manager", version = "1.19.0" }
solana-loader-v4-program = { git = "https://github.com/solana-labs/solana", rev = "30adda4a71", package = "solana-loader-v4-program", version = "1.19.0" }
solana-logger = { git = "https://github.com/solana-labs/solana", rev = "30adda4a71", package = "solana-logger", version = "1.19.0" }
solana-measure = { git = "https://github.com/solana-labs/solana", rev = "30adda4a71", package = "solana-measure", version = "1.19.0" }
solana-metrics = { git = "https://github.com/solana-labs/solana", rev = "30adda4a71", package = "solana-metrics", version = "1.19.0" }
solana-perf = { git = "https://github.com/solana-labs/solana", rev = "30adda4a71", package = "solana-perf", version = "1.19.0" }
solana-program-runtime = { git = "https://github.com/solana-labs/solana", rev = "30adda4a71", package = "solana-program-runtime", version = "1.19.0" }
solana-rayon-threadlimit = { git = "https://github.com/solana-labs/solana", rev = "30adda4a71", package = "solana-rayon-threadlimit", version = "1.19.0" }
solana-pubsub-client = { git = "https://github.com/solana-labs/solana", rev = "30adda4a71", package = "solana-pubsub-client", version = "1.19.0" }
solana-rpc-client = { git = "https://github.com/solana-labs/solana", rev = "30adda4a71", package = "solana-rpc-client", version = "1.19.0" }
solana-rpc-client-api = { git = "https://github.com/solana-labs/solana", rev = "30adda4a71", package = "solana-rpc-client-api", version = "1.19.0" }
solana-streamer = { git = "https://github.com/solana-labs/solana", rev = "30adda4a71", package = "solana-streamer", version = "1.19.0" }
solana-sdk = { git = "https://github.com/solana-labs/solana", rev = "30adda4a71", package = "solana-sdk", version = "1.19.0" }
solana-svm = { git = "https://github.com/solana-labs/solana", rev = "30adda4a71", package = "solana-svm", version = "1.19.0" }
solana-storage-proto = { git = "https://github.com/solana-labs/solana", rev = "30adda4a71", package = "solana-storage-proto", version = "1.19.0" }
solana-system-program = { git = "https://github.com/solana-labs/solana", rev = "30adda4a71", package = "solana-system-program", version = "1.19.0" }
solana-transaction-status = { git = "https://github.com/solana-labs/solana", rev = "30adda4a71", package = "solana-transaction-status", version = "1.19.0" }
solana_rbpf = "=0.8.0"
spl-token = "=4.0.1"
spl-token-2022 = "=2.0.1"
strum = "0.24"
strum_macros = "0.24"
tempfile = "3.10.1"
test-tools = { path = "./test-tools" }
test-tools-core = { path = "./test-tools-core" }
thiserror = "1.0.57"
toml = "0.8.13"
# Update solana-tokio patch below when updating this version
tokio = "1.29.1"
tokio-stream = "0.1.15"
tokio-util = "0.7.10"
# Tonic version 11 conflicts with lower level deps of solana
tonic = "0.10.2"
tonic-build = "0.10.2"
tonic-health = "0.10.2"
url = "2.5.0"
vergen = "8.3.1"
zstd = "0.11.2"
## Needed when using accounts-db copy
blake3 = "1.5.0"
bv = "0.11.1"
bytemuck = "1.14.3"
bzip2 = "0.4.4"
dashmap = "5.5.3"
ed25519-dalek = "=1.0.1"
flate2 = "1.0.28"
fnv = "1.0.7"
im = "15.1.0"
index_list = "0.2.11"
indexmap = "2.2.3"
lz4 = "1.24.0"
memmap2 = "0.5.10"
memoffset = "0.9"
modular-bitfield = "0.11.2"
num_enum = "0.7.2"
ouroboros = "0.15.6"
qualifier_attr = { version = "0.2.2", default-features = false }
rand_chacha = "0.3.1"
regex = "1.10.3"
seqlock = "0.2.0"
smallvec = "1.13.1"
solana-bucket-map = { git = "https://github.com/solana-labs/solana", rev = "30adda4a71", package = "solana-bucket-map" }
solana-config-program = { git = "https://github.com/solana-labs/solana", rev = "30adda4a71", package = "solana-config-program" }
solana-nohash-hasher = "0.2.1"
solana-stake-program = { git = "https://github.com/solana-labs/solana", rev = "30adda4a71", package = "solana-stake-program" }
solana-vote-program = { git = "https://github.com/solana-labs/solana", rev = "30adda4a71", package = "solana-vote-program" }
static_assertions = "1.1.0"
tar = "0.4.40"
test-case = "3.3.1"
[patch.'https://github.com/solana-labs/solana']
solana-accounts-db = { path = "./solana/accounts-db" }
# This one we just copied in order to match the prost version
solana-storage-proto = { path = "./solana/storage-proto" }
[patch.crates-io]
# We include the following crates as our dependencies above from crates.io:
#
# * spl-associated-token-account
# * spl-instruction-padding
# * spl-memo
# * spl-pod
# * spl-token
# * spl-token-2022
# * spl-token-metadata-interface
#
# They, in turn, depend on a number of crates that we also include directly
# using `path` specifications. For example, `spl-token` depends on
# `solana-program`. And we explicitly specify `solana-program` above as a local
# path dependency:
#
# solana-program = { path = "../../sdk/program", version = "=1.16.0" }
#
# Unfortunately, Cargo will try to resolve the `spl-token` `solana-program`
# dependency only using what is available on crates.io. Crates.io normally
# contains a previous version of these crates, and we end up with two versions
# of `solana-program` and `solana-zk-token-sdk` and all of their dependencies in
# our build tree.
#
# If you are developing downstream using non-crates-io solana-program (local or
# forked repo, or from github rev, eg), duplicate the following patch statements
# in your Cargo.toml. If you still hit duplicate-type errors with the patch
# statements in place, run `cargo update -p solana-program` and/or `cargo update
# -p solana-zk-token-sdk` to remove extraneous versions from your Cargo.lock
# file.
#
# There is a similar override in `programs/sbf/Cargo.toml`. Please keep both
# comments and the overrides in sync.
# NOTE: in our case we don't have these crates locally, but need to ensure to point
# to the compatible versions on github
solana-program = { git = "https://github.com/solana-labs/solana", rev = "30adda4a71", package = "solana-program" }
solana-zk-token-sdk = { git = "https://github.com/solana-labs/solana", rev = "30adda4a71", package = "solana-zk-token-sdk" }