-
Notifications
You must be signed in to change notification settings - Fork 7
/
Cargo.toml
111 lines (94 loc) · 2.87 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
[package]
name = "blockchain_etl_indexer"
version = "1.0.0"
edition = "2021"
build = "build_proto.rs"
[dependencies]
futures = "0.3.29"
chrono = "0.4.31"
actix-web = "4.3.0"
prometheus = "0.13.3"
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"] }
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"
# PUBLISHERS
# 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.20.0", optional = true }
google-cloud-googleapis = { version = "0.11.0", optional = true }
google-cloud-auth = { version = "0.12.0", optional = true }
# JSONL
prost-reflect = { version = "0.12.0", optional = true, features = ["serde"] }
# JSON
# BLOCKCHAIN-SPECIFIC
# SOLANA DEPENDENCIES
solana-sdk = { version = "1.16", optional = true }
solana-program = { 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"
# NON-WINDOWS
[target.'cfg(not(target_env = "msvc"))'.dependencies]
tikv-jemallocator = "0.5.4"
[build-dependencies]
prost-build = { version = "0.12.1" }
[profile.release]
lto = true
[features]
# Solana features
SOLANA_BIGTABLE = ["SOLANA", "dep:solana-storage-bigtable"]
SOLANA = [
"RPC",
"CUSTOM_INDEXING",
"dep:solana-sdk",
"dep:solana-program",
"dep:solana-transaction-status",
"dep:solana-account-decoder",
"dep:solana-storage-bigtable",
]
# Single vs Separate publishers
SINGLE_PUBLISHER = ["STREAM"]
SEPARATE_PUBLISHERS = ["STREAM"]
# Publisher selection
GOOGLE_PUBSUB = [
"STREAM",
"STRING_TIMESTAMP",
"dep:google-cloud-pubsub",
"dep:google-cloud-googleapis",
"dep:google-cloud-auth",
]
RABBITMQ_STREAM = ["STREAM", "INT_TIMESTAMP", "dep:rabbitmq-stream-client"]
RABBITMQ_CLASSIC = ["STREAM", "INT_TIMESTAMP", "dep:amqprs"]
JSONL = ["dep:prost-reflect", "STRING_TIMESTAMP", "PUBLISH_WITH_NAME"]
JSON = ["dep:prost-reflect", "STRING_TIMESTAMP", "PUBLISH_WITH_NAME"]
STREAM = []
PUBLISH_WITH_NAME = []
# Use an ISO string, or the number of milliseconds since the UNIX epoch for timestamps
STRING_TIMESTAMP = []
INT_TIMESTAMP = []
# Call features
RPC = []
REST = []
# Whether we have a more custom indexing functionality
CUSTOM_INDEXING = []