5f4926dd49
* fixed all uses of deprecated clap methods * updated all uses of clap to 4.0 * unified obtaining build information * moved around the imports * Moved all nym-api arguments to ApiArgs and simplified parsing * Using common shutdown signal code * Using clap for parsing Vec<Url> * stricter validation of socks5-client arguments * ibid for the native client * ibid for the gateway * ibid for the mixnode * clippy
125 lines
4.0 KiB
TOML
125 lines
4.0 KiB
TOML
# Copyright 2020 - Nym Technologies SA <contact@nymtech.net>
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
[package]
|
|
name = "nym-api"
|
|
version = "1.1.4"
|
|
authors = [
|
|
"Dave Hrycyszyn <futurechimp@users.noreply.github.com>",
|
|
"Jędrzej Stuczyński <andrew@nymtech.net>",
|
|
"Drazen Urch <durch@users.noreply.github.com>",
|
|
]
|
|
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"
|
|
bs58 = {version = "0.4.0", optional = true }
|
|
bip39 = "1"
|
|
cfg-if = "1.0"
|
|
clap = { version = "4.0", features = ["cargo", "derive"] }
|
|
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"
|
|
lazy_static = "1.4.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
|
|
build-information = { path = "../common/build-information" }
|
|
coconut-bandwidth-contract-common = { path = "../common/cosmwasm-smart-contracts/coconut-bandwidth-contract" }
|
|
coconut-dkg-common = { path = "../common/cosmwasm-smart-contracts/coconut-dkg", optional = true }
|
|
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" }
|
|
logging = { path = "../common/logging"}
|
|
cw3 = { version = "0.13.4", optional = true }
|
|
dkg = { path = "../common/crypto/dkg", optional = true }
|
|
gateway-client = { path = "../common/client-libs/gateway-client" }
|
|
inclusion-probability = { path = "../common/inclusion-probability" }
|
|
mixnet-contract-common = { path = "../common/cosmwasm-smart-contracts/mixnet-contract" }
|
|
contracts-common = { path = "../common/cosmwasm-smart-contracts/contracts-common", features = ["coconut"] }
|
|
multisig-contract-common = { path = "../common/cosmwasm-smart-contracts/multisig-contract" }
|
|
nymcoconut = { path = "../common/nymcoconut", optional = true }
|
|
nymsphinx = { path = "../common/nymsphinx" }
|
|
pemstore = { path = "../common/pemstore", optional = true }
|
|
task = { path = "../common/task" }
|
|
topology = { path = "../common/topology" }
|
|
nym-api-requests = { path = "nym-api-requests" }
|
|
validator-client = { path = "../common/client-libs/validator-client", features = [
|
|
"nymd-client",
|
|
] }
|
|
version-checker = { path = "../common/version-checker" }
|
|
|
|
[features]
|
|
coconut = [
|
|
"coconut-interface",
|
|
"credentials",
|
|
"cw3",
|
|
"gateway-client/coconut",
|
|
"credentials/coconut",
|
|
"nym-api-requests/coconut",
|
|
"nymcoconut",
|
|
"coconut-dkg-common",
|
|
"dkg",
|
|
"bs58",
|
|
"pemstore",
|
|
]
|
|
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",
|
|
] }
|
|
|
|
[dev-dependencies]
|
|
cw3 = "0.13.4"
|
|
cw-utils = "0.13.4"
|