3096a2307f
* Change mixnode, gateway, network and nym-api binary licenses to GPLv3 * Add license to cargo files * Revert model license to match crate * Add license to nym-node * Revert model license to match crate * Fix formatting --------- Co-authored-by: Mark Sinclair <mmsinclair@users.noreply.github.com>
127 lines
4.7 KiB
TOML
127 lines
4.7 KiB
TOML
# Copyright 2020 - Nym Technologies SA <contact@nymtech.net>
|
|
# SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
[package]
|
|
name = "nym-api"
|
|
license = "GPL-3"
|
|
version = "1.1.32"
|
|
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 = { workspace = true }
|
|
bs58 = { version = "0.4.0" }
|
|
bip39 = { workspace = true }
|
|
cfg-if = "1.0"
|
|
clap = { workspace = true, 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"
|
|
futures = { workspace = true }
|
|
humantime-serde = "1.0"
|
|
lazy_static = "1.4.0"
|
|
log = { workspace = true }
|
|
pin-project = "1.0"
|
|
rand = "0.8.5"
|
|
rand-07 = { package = "rand", version = "0.7.3" } # required for compatibility
|
|
reqwest = { workspace = true, features = ["json"] }
|
|
rocket = { version = "0.5.0-rc.2", features = ["json"] }
|
|
rocket_cors = { git = "https://github.com/lawliet89/rocket_cors", rev = "dfd3662c49e2f6fc37df35091cb94d82f7fb5915" }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
tap = "1.0"
|
|
thiserror = { workspace = true }
|
|
time = { version = "0.3.14", features = ["serde-human-readable", "parsing"] }
|
|
tokio = { version = "1.24.1", features = [
|
|
"rt-multi-thread",
|
|
"macros",
|
|
"signal",
|
|
"time",
|
|
] }
|
|
tokio-stream = "0.1.11"
|
|
url = { workspace = true }
|
|
|
|
ts-rs = { workspace = true, optional = true}
|
|
|
|
anyhow = { workspace = true }
|
|
getset = "0.1.1"
|
|
|
|
sqlx = { version = "0.6.2", 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 = { workspace = true, features = ["preserve_order"] }
|
|
zeroize = { workspace = true }
|
|
|
|
## ephemera-specific
|
|
actix-web = "4"
|
|
array-bytes = "6.0.0"
|
|
chrono = { version = "0.4.24", default-features = false, features = ["clock"] }
|
|
futures-util = "0.3.25"
|
|
serde_derive = "1.0.149"
|
|
tempfile = "3.3.0"
|
|
uuid = { version = "1.3.0", features = ["serde", "v4"] }
|
|
|
|
## internal
|
|
ephemera = { path = "../ephemera" }
|
|
nym-bandwidth-controller = { path = "../common/bandwidth-controller" }
|
|
nym-coconut-bandwidth-contract-common = { path = "../common/cosmwasm-smart-contracts/coconut-bandwidth-contract" }
|
|
nym-coconut-dkg-common = { path = "../common/cosmwasm-smart-contracts/coconut-dkg" }
|
|
nym-coconut-interface = { path = "../common/coconut-interface" }
|
|
nym-ephemera-common = { path = "../common/cosmwasm-smart-contracts/ephemera" }
|
|
nym-config = { path = "../common/config" }
|
|
cosmwasm-std = { workspace = true }
|
|
nym-credential-storage = { path = "../common/credential-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-inclusion-probability = { path = "../common/inclusion-probability" }
|
|
nym-mixnet-contract-common = { path = "../common/cosmwasm-smart-contracts/mixnet-contract" }
|
|
nym-vesting-contract-common = { path = "../common/cosmwasm-smart-contracts/vesting-contract" }
|
|
nym-contracts-common = { path = "../common/cosmwasm-smart-contracts/contracts-common" }
|
|
nym-multisig-contract-common = { path = "../common/cosmwasm-smart-contracts/multisig-contract" }
|
|
nym-service-provider-directory-common = { path = "../common/cosmwasm-smart-contracts/service-provider-directory" }
|
|
nym-name-service-common = { path = "../common/cosmwasm-smart-contracts/name-service" }
|
|
nym-coconut = { path = "../common/nymcoconut" }
|
|
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-bin-common = { path = "../common/bin-common", features = ["output_format"] }
|
|
nym-node-tester-utils = { path = "../common/node-tester-utils" }
|
|
nym-node-requests = { path = "../nym-node/nym-node-requests" }
|
|
|
|
[features]
|
|
no-reward = []
|
|
generate-ts = ["ts-rs"]
|
|
|
|
[build-dependencies]
|
|
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
|
|
sqlx = { version = "0.6.2", features = [
|
|
"runtime-tokio-rustls",
|
|
"sqlite",
|
|
"macros",
|
|
"migrate",
|
|
] }
|
|
|
|
[dev-dependencies]
|
|
cw3 = { workspace = true }
|
|
cw-utils = { workspace = true }
|