-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
192 lines (163 loc) · 4.79 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
[package]
name = "blockchain_etl_indexer"
version = "0.0.1"
edition = "2021"
build = "build_proto.rs"
[dependencies]
futures = "0.3.29"
futures-util = "0.3.30"
chrono = "0.4.31"
actix-web = "4.3.0"
actix-web-prom = "0.7.0"
prost = "0.12.1"
prost-build = { version = "0.12.1" }
zstd = "0.12.3"
tokio = { version = "1.34.0", features = ["full", "signal"] }
tokio-util = "0.7.10"
reqwest = { version = "0.11.22", features = ["json"] }
serde = { version = "1.0.164", features = ["derive"] }
serde_json = "1.0.99"
simd-json = { version = "0.11.0", features = ["allow-non-simd"] }
async-channel = "2.1.0"
rand = "0.8.5"
thiserror = "1.0.50"
csv = "1.3.0"
clap = { version = "4.4.8", features = ["derive"] }
log = "0.4.20"
env_logger = "0.10.1"
ctrlc = "3.4.1"
dotenvy = "0.15.7"
base64 = "0.21.5"
borsh = "0.10.3"
hex = "0.4"
# METRICS
prometheus = { version = "0.13.3", optional = true }
# PUBLISHERS
# Apache Kafka
rskafka = { version = "0.5.0", optional = true }
# RabbitMQ Classic
amqprs = { version = "1.4.0", optional = true }
# RabbitMQ Stream
rabbitmq-stream-client = { version = "0.4.0", optional = true }
# Google Pub/Sub
google-cloud-pubsub = { version = "0.22.0", optional = true }
google-cloud-googleapis = { version = "0.12.0", optional = true }
google-cloud-auth = { version = "0.13.0", optional = true }
google-cloud-gax = "0.17.0"
# Google Cloud Storage
google-cloud-storage = { version = "0.15.0", optional = true }
# JSON / JSONL
prost-reflect = { version = "0.12.0", optional = true, features = ["serde"] }
# Apache Avro
apache-avro = { version = "0.17.0", optional = true }
# BLOCKCHAIN-SPECIFIC
# SOLANA DEPENDENCIES
# solana-sdk = { version = "1.16", optional = true }
# solana-transaction-status = { version = "1.16", optional = true }
# solana-account-decoder = { version = "1", optional = true }
# solana-storage-bigtable = { version = "1", optional = true }
# mpl-token-metadata = "3.0.1"
# APTOS DEPENDENCIES
aptos-protos = { git = "https://github.com/aptos-labs/aptos-core.git", rev = "5c48aee129b5a141be2792ffa3d9bd0a1a61c9cb", optional = true }
processor = { git = "https://github.com/aptos-labs/aptos-indexer-processors.git", tag = "aptos-indexer-processors-v1.15.5", optional = true }
# processor = { path = "src/aptos_config/aptos-core/ecosystem/indexer-grpc/indexer-grpc-parser/aptos-indexer-processors/rust/processor", optional = true }
# processor = { path = "src/aptos_config/aptos-indexer-processors/rust/processor", optional = true }
tonic = { version = "0.12.3", features = [
"tls",
"tls-roots",
"transport",
"prost",
"gzip",
"codegen",
"zstd",
], optional = true }
url = { version = "2.5.0", optional = true }
once_cell = "1.19.0"
[build-dependencies]
prost-build = { version = "0.12.1" }
log = "0.4.21"
env_logger = "0.11.3"
[profile.release]
lto = true
[features]
default = [
"MANTRA",
"SEPARATE_PUBLISHERS",
#"METRICS",
#"APTOS_GRPC",
#"ORCHESTRATED",
"JSONL",
#"APACHE_AVRO",
]
METRICS = ["dep:prometheus"]
ORCHESTRATED = [
"dep:google-cloud-pubsub",
"dep:google-cloud-googleapis",
"dep:google-cloud-auth",
]
MANTRA = ["SEPARATE_PUBLISHERS", "GRPC", "CUSTOM_INDEXING"]
APTOS = [
"SEPARATE_PUBLISHERS",
"REST",
"CUSTOM_INDEXING",
"dep:aptos-protos",
"dep:processor",
]
SOLANA = [
"RPC",
"CUSTOM_INDEXING",
#"dep:solana-sdk",
#"dep:solana-transaction-status",
#"dep:solana-account-decoder",
#"dep:solana-storage-bigtable",
]
# Single vs Separate publishers
SINGLE_PUBLISHER = ["STREAM"]
SEPARATE_PUBLISHERS = ["STREAM"]
# Publisher selection
APACHE_KAFKA = ["STREAM", "INT_TIMESTAMP", "dep:rskafka"]
GOOGLE_PUBSUB = [
"STREAM",
"REQUIRES_DISCONNECT",
"STRING_TIMESTAMP",
"dep:google-cloud-pubsub",
"dep:google-cloud-googleapis",
"dep:google-cloud-auth",
]
GOOGLE_CLOUD_STORAGE = [
"STREAM",
"STRING_TIMESTAMP",
"PUBLISH_WITH_NAME",
"dep:google-cloud-storage",
"dep:google-cloud-googleapis",
"dep:google-cloud-auth",
]
RABBITMQ_STREAM = [
"STREAM",
"INT_TIMESTAMP",
"REQUIRES_DISCONNECT",
"dep:rabbitmq-stream-client",
]
RABBITMQ_CLASSIC = [
"STREAM",
"INT_TIMESTAMP",
"REQUIRES_DISCONNECT",
"dep:amqprs",
]
JSONL = ["STRING_TIMESTAMP", "PUBLISH_WITH_NAME", "dep:prost-reflect"]
JSON = ["STRING_TIMESTAMP", "PUBLISH_WITH_NAME", "dep:prost-reflect"]
# Option to use Avro instead of Protocol Buffers for serialization (e.g. for use with Pub/Sub)
APACHE_AVRO = ["dep:apache-avro"]
STREAM = []
PUBLISH_WITH_NAME = []
REQUIRES_DISCONNECT = []
# Use an ISO string, or the number of milliseconds since the UNIX epoch for timestamps
STRING_TIMESTAMP = []
INT_TIMESTAMP = []
# Call features
RPC = []
REST = []
GRPC = ["dep:tonic"]
APTOS_GRPC = ["dep:url", "dep:tonic"]
# Whether we have a more custom indexing functionality
CUSTOM_INDEXING = []