136 lines
4.9 KiB
TOML
136 lines
4.9 KiB
TOML
# Copyright 2020 - Nym Technologies SA <contact@nymtech.net>
|
|
# SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
[package]
|
|
name = "nym-api"
|
|
license = "GPL-3.0"
|
|
version = "1.1.67"
|
|
authors.workspace = true
|
|
edition = "2021"
|
|
rust-version.workspace = true
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
async-trait = { workspace = true }
|
|
bs58 = { workspace = true }
|
|
bip39 = { workspace = true }
|
|
bincode.workspace = true
|
|
console-subscriber = { workspace = true, optional = true } # nym-api needs to be built with RUSTFLAGS="--cfg tokio_unstable"
|
|
cfg-if = { workspace = true }
|
|
clap = { workspace = true, features = ["cargo", "derive", "env"] }
|
|
dashmap = { workspace = true }
|
|
futures = { workspace = true }
|
|
humantime-serde = { workspace = true }
|
|
moka = { workspace = true }
|
|
pin-project = { workspace = true }
|
|
rand = { workspace = true }
|
|
rand_chacha = { workspace = true }
|
|
reqwest = { workspace = true, features = ["json"] }
|
|
semver = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
time = { workspace = true, features = ["serde-human-readable", "parsing"] }
|
|
tokio = { workspace = true, features = [
|
|
"rt-multi-thread",
|
|
"macros",
|
|
"signal",
|
|
"time",
|
|
] }
|
|
tokio-stream = { workspace = true }
|
|
tokio-util = { workspace = true }
|
|
url = { workspace = true }
|
|
|
|
tendermint = { workspace = true }
|
|
ts-rs = { workspace = true, optional = true }
|
|
|
|
anyhow = { workspace = true }
|
|
|
|
sqlx = { workspace = true, features = [
|
|
"runtime-tokio-rustls",
|
|
"sqlite",
|
|
"macros",
|
|
"migrate",
|
|
"time",
|
|
] }
|
|
|
|
schemars = { workspace = true, features = ["preserve_order"] }
|
|
zeroize = { workspace = true }
|
|
|
|
# for axum server
|
|
axum = { workspace = true, features = ["tokio"] }
|
|
tower-http = { workspace = true, features = ["cors", "trace", "compression-br", "compression-deflate", "compression-gzip", "compression-zstd"] }
|
|
utoipa = { workspace = true, features = ["axum_extras", "time"] }
|
|
utoipauto = { workspace = true }
|
|
utoipa-swagger-ui = { workspace = true, features = ["axum"] }
|
|
tracing = { workspace = true }
|
|
|
|
## internal
|
|
nym-cache = { path = "../common/nym-cache" }
|
|
nym-bandwidth-controller = { path = "../common/bandwidth-controller" }
|
|
nym-ecash-contract-common = { path = "../common/cosmwasm-smart-contracts/ecash-contract" }
|
|
nym-ecash-time = { path = "../common/ecash-time", features = ["expiration"] }
|
|
nym-coconut-dkg-common = { path = "../common/cosmwasm-smart-contracts/coconut-dkg" }
|
|
nym-compact-ecash = { path = "../common/nym_offline_compact_ecash" }
|
|
nym-credentials-interface = { path = "../common/credentials-interface" }
|
|
nym-config = { path = "../common/config" }
|
|
cosmwasm-std = { workspace = true }
|
|
nym-credential-storage = { path = "../common/credential-storage", features = [
|
|
"persistent-storage",
|
|
] }
|
|
nym-credentials = { path = "../common/credentials" }
|
|
nym-crypto = { path = "../common/crypto" }
|
|
cw2 = { workspace = true }
|
|
cw3 = { workspace = true }
|
|
cw4 = { workspace = true }
|
|
nym-dkg = { path = "../common/dkg", features = ["cw-types"] }
|
|
nym-gateway-client = { path = "../common/client-libs/gateway-client" }
|
|
nym-mixnet-contract-common = { path = "../common/cosmwasm-smart-contracts/mixnet-contract", features = ["utoipa"] }
|
|
nym-contracts-common = { path = "../common/cosmwasm-smart-contracts/contracts-common", features = ["naive_float", "utoipa"] }
|
|
nym-sphinx = { path = "../common/nymsphinx" }
|
|
nym-pemstore = { path = "../common/pemstore" }
|
|
nym-task = { path = "../common/task" }
|
|
nym-topology = { path = "../common/topology" }
|
|
nym-api-requests = { path = "nym-api-requests" }
|
|
nym-validator-client = { path = "../common/client-libs/validator-client" }
|
|
nym-http-api-client = { path = "../common/http-api-client" }
|
|
nym-bin-common = { path = "../common/bin-common", features = ["output_format", "openapi", "basic_tracing"] }
|
|
nym-node-tester-utils = { path = "../common/node-tester-utils" }
|
|
nym-node-requests = { path = "../nym-node/nym-node-requests" }
|
|
nym-types = { path = "../common/types" }
|
|
nym-http-api-common = { path = "../common/http-api-common", features = ["utoipa", "output", "middleware"] }
|
|
nym-serde-helpers = { path = "../common/serde-helpers", features = ["date"] }
|
|
nym-ticketbooks-merkle = { path = "../common/ticketbooks-merkle" }
|
|
nym-statistics-common = { path = "../common/statistics" }
|
|
nym-ecash-signer-check = { path = "../common/ecash-signer-check" }
|
|
|
|
|
|
[features]
|
|
no-reward = []
|
|
v2-performance = []
|
|
generate-ts = ["ts-rs"]
|
|
|
|
[build-dependencies]
|
|
anyhow = { workspace = true }
|
|
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
|
|
sqlx = { workspace = true, features = [
|
|
"runtime-tokio-rustls",
|
|
"sqlite",
|
|
"macros",
|
|
"migrate",
|
|
] }
|
|
|
|
[dev-dependencies]
|
|
axum-test = { workspace = true }
|
|
tempfile = { workspace = true }
|
|
cw3 = { workspace = true }
|
|
cw-utils = { workspace = true }
|
|
rand_chacha = { workspace = true }
|
|
sha2 = { workspace = true }
|
|
dotenvy = { workspace = true }
|
|
test-with = { workspace = true, default-features = false }
|
|
|
|
[lints]
|
|
workspace = true
|