forked from Cailloucano/nym
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
115 lines (104 loc) · 3.52 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
# Copyright 2020 - Nym Technologies SA <[email protected]>
# SPDX-License-Identifier: Apache-2.0
[package]
name = "nym-validator-api"
version = "1.0.2"
authors = [
"Dave Hrycyszyn <[email protected]>",
"Jędrzej Stuczyński <[email protected]>",
"Drazen Urch <[email protected]>",
]
edition = "2021"
rust-version = "1.56"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
async-trait = "0.1.52"
cfg-if = "1.0"
clap = { version = "3.2", features = ["cargo"] }
console-subscriber = { version = "0.1.1", optional = true } # validator-api needs to be built with RUSTFLAGS="--cfg tokio_unstable"
dirs = "4.0"
dotenv = "0.15.0"
futures = "0.3.24"
humantime-serde = "1.0"
log = "0.4.17"
pin-project = "1.0"
pretty_env_logger = "0.4.0"
rand = "0.8.5"
rand-07 = { package = "rand", version = "0.7.3" } # required for compatibility
reqwest = { version = "0.11.11", features = ["json"] }
rocket = { version = "0.5.0-rc.2", features = ["json"] }
rocket_cors = { git = "https://github.com/lawliet89/rocket_cors", rev = "dfd3662c49e2f6fc37df35091cb94d82f7fb5915" }
serde = "1.0"
serde_json = "1.0"
tap = "1.0"
thiserror = "1.0"
time = { version = "0.3.14", features = ["serde-human-readable", "parsing"] }
tokio = { version = "1.21.2", features = [
"rt-multi-thread",
"macros",
"signal",
"time",
] }
tokio-stream = "0.1.9"
url = "2.2"
ts-rs = {version = "6.1", optional = true}
anyhow = "1.0"
getset = "0.1.1"
sqlx = { version = "0.6.1", features = [
"runtime-tokio-rustls",
"sqlite",
"macros",
"migrate",
] }
okapi = { version = "0.7.0-rc.1", features = ["impl_json_schema"] }
rocket_okapi = { version = "0.8.0-rc.2", features = ["swagger"] }
schemars = { version = "0.8", features = ["preserve_order"] }
## internal
coconut-bandwidth-contract-common = { path = "../common/cosmwasm-smart-contracts/coconut-bandwidth-contract" }
coconut-interface = { path = "../common/coconut-interface", optional = true }
config = { path = "../common/config" }
cosmwasm-std = "1.0.0"
credential-storage = { path = "../common/credential-storage" }
credentials = { path = "../common/credentials", optional = true }
crypto = { path = "../common/crypto" }
gateway-client = { path = "../common/client-libs/gateway-client" }
inclusion-probability = { path = "../common/inclusion-probability" }
mixnet-contract-common = { path = "../common/cosmwasm-smart-contracts/mixnet-contract" }
multisig-contract-common = { path = "../common/cosmwasm-smart-contracts/multisig-contract" }
nymcoconut = { path = "../common/nymcoconut", optional = true }
nymsphinx = { path = "../common/nymsphinx" }
task = { path = "../common/task" }
topology = { path = "../common/topology" }
validator-api-requests = { path = "validator-api-requests" }
validator-client = { path = "../common/client-libs/validator-client", features = [
"nymd-client",
] }
version-checker = { path = "../common/version-checker" }
[features]
coconut = [
"coconut-interface",
"credentials",
"gateway-client/coconut",
"credentials/coconut",
"validator-api-requests/coconut",
"nymcoconut",
]
no-reward = []
generate-ts = ["ts-rs"]
[build-dependencies]
tokio = { version = "1.21.2", features = ["rt-multi-thread", "macros"] }
sqlx = { version = "0.6.2", features = [
"runtime-tokio-rustls",
"sqlite",
"macros",
"migrate",
] }
vergen = { version = "7", default-features = false, features = [
"build",
"git",
"rustc",
"cargo",
] }
[dev-dependencies]
cw3 = "0.13.2"
cw-utils = "0.13.2"