-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
160 lines (150 loc) · 4.58 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
[workspace]
members = [
"crates/erc20_payment_lib",
"crates/erc20_payment_lib_common",
"crates/erc20_payment_lib_extra",
"crates/erc20_payment_lib_test",
"crates/web3_account_server",
"crates/web3_test_proxy_client",
"crates/web3_test_proxy",
"crates/erc20_rpc_pool",
]
[[bin]]
name = "erc20_processor"
path = "src/main.rs"
[package]
name = "erc20_processor"
description = "Payment processor for ERC20 tokens"
authors = ["Sieciech Czajka <[email protected]>"]
version = "0.4.8"
edition = "2021"
license = "MIT"
[workspace.dependencies]
actix = "0.13"
actix-cors = "0.7"
actix-files = "0.6"
actix-web-httpauth = "0.8"
actix-web = { version = "4", default-features = false, features = [
"macros",
] }
actix-web-actors = { version = "4", default-features = false }
anyhow = "1"
awc = { version = "3.1", features = ["rustls"] }
base64 = "0.22"
bollard = "0.14"
chrono = { version = "0.4", features = ["serde"] }
csv = "1.2"
dotenv = "0.15"
env_logger = "0.10"
eth-keystore = "0.5"
fastrand = "2.0.0"
futures = "0.3"
futures-util = "0.3"
hex = "0.4.3"
humantime = "2.1"
itertools = "0.11"
lazy_static = "1.4.0"
log = "0.4.17"
metrics = "0.12"
metrics-core = "0.5.2"
metrics-runtime = { version = "0.13.1", default-features = false, features = ["observers"] }
mime_guess = "2.0.3"
parking_lot = "0.12"
rand = "0.8.5"
regex = "1.10.2"
reqwest = { version = "0.11", default-features = false, features = ["rustls-tls"] }
rust-embed = "6.8"
rust_decimal = "1.26"
rustc-hex = "2.1"
secp256k1 = "0.27" # version has to match web3
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0" }
sha3 = "0.10.6"
sqlx = { version = "0.7", features = ["sqlite", "chrono", "runtime-tokio"] }
stream-rate-limiter = "0.4"
structopt = "0.3"
thiserror = "1.0"
thunderdome = "0.6"
tokio = { version = "^1.21", features = ["macros", "rt-multi-thread"] }
tokio-stream = { version = "0.1", features = ["sync"] }
toml = "0.8.8" # need some refactor to update
trust-dns-resolver = "0.23"
url = "2.4"
uuid = { version = "1.2", features = ["serde", "v4"] }
web3 = { version = "0.19", default-features = false, features = [
"signing",
"http-rustls-tls",
] }
# local dependencies
erc20_rpc_pool = { path = "crates/erc20_rpc_pool", version = "=0.4.8" }
erc20_payment_lib = { path = "crates/erc20_payment_lib", version = "=0.4.8" }
erc20_payment_lib_common = { path = "crates/erc20_payment_lib_common", version = "=0.4.8" }
erc20_payment_lib_extra = { path = "crates/erc20_payment_lib_extra", version = "=0.4.8" }
web3_test_proxy_client = { path = "crates/web3_test_proxy_client", version = "=0.4.8" }
[dependencies]
actix-cors = { workspace = true }
actix-files = { workspace = true }
actix-web = { workspace = true }
anyhow = { workspace = true }
awc = { workspace = true }
chrono = { workspace = true }
csv = { workspace = true }
dotenv = { workspace = true }
env_logger = { workspace = true }
eth-keystore = { workspace = true }
fastrand = { workspace = true }
futures = { workspace = true }
futures-util = { workspace = true }
hex = { workspace = true }
itertools = { workspace = true }
lazy_static = { workspace = true }
log = { workspace = true }
metrics = { workspace = true }
metrics-runtime = { workspace = true }
rand = { workspace = true }
regex = { workspace = true }
rust_decimal = { workspace = true }
rustc-hex = { workspace = true }
secp256k1 = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
sha3 = { workspace = true }
sqlx = { workspace = true }
stream-rate-limiter = { workspace = true }
structopt = { workspace = true }
thiserror = { workspace = true }
tokio = { workspace = true }
toml = { workspace = true }
trust-dns-resolver = { workspace = true }
url = { workspace = true }
uuid = { workspace = true }
web3 = { workspace = true }
erc20_rpc_pool = { workspace = true }
erc20_payment_lib = { workspace = true }
erc20_payment_lib_common = { workspace = true }
erc20_payment_lib_extra = { workspace = true }
[dev-dependencies]
bollard = { workspace = true }
erc20_payment_lib_test = { path = "crates/erc20_payment_lib_test" }
web3_test_proxy_client = { path = "crates/web3_test_proxy_client" }
awc = { workspace = true }
# please do not use this library. It is not developer friendly
# if you have very good reason then ask first
#test-case = "3.1.0"
[profile.dev]
debug = false
incremental = false
# Set the default for dependencies.
[profile.dev.package."*"]
opt-level = 2
[profile.release-fast]
inherits = "release"
incremental = false
opt-level = 1
panic = "unwind"
[profile.release-lto]
inherits = "release"
codegen-units = 1
lto = "fat"
opt-level = 3
panic = "abort"