f4dd9a915d
* Add Apache 2.0 to bunch of common crates * Allow some basic licenses * Add more licenses
65 lines
2.2 KiB
TOML
65 lines
2.2 KiB
TOML
# Copyright 2023 - Nym Technologies SA <contact@nymtech.net>
|
|
# SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
[package]
|
|
name = "nym-node"
|
|
version = "0.1.0"
|
|
authors.workspace = true
|
|
repository.workspace = true
|
|
homepage.workspace = true
|
|
documentation.workspace = true
|
|
edition.workspace = true
|
|
license = "GPL-3.0"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
anyhow = { workspace = true }
|
|
bytes = "1.5.0"
|
|
colored = "2"
|
|
ipnetwork = "0.16"
|
|
rand = "0.7.3"
|
|
serde = { workspace = true, features = ["derive"] }
|
|
serde_yaml = "0.9.25"
|
|
serde_json = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
tracing = { workspace = true }
|
|
tokio = { workspace = true, features = ["macros", "sync"] }
|
|
|
|
# Wireguard:
|
|
fastrand = "2"
|
|
|
|
# HTTP API:
|
|
axum = { workspace = true }
|
|
# useful for `#[axum_macros::debug_handler]`
|
|
#axum-macros = "0.3.8"
|
|
mime = "0.3.17"
|
|
hyper = { workspace = true }
|
|
tower = { version = "0.4.13" }
|
|
tower-http = { version = "0.4.4", features = ["fs"] }
|
|
|
|
# `actix_extras`? what the hell?
|
|
# hear me out first!
|
|
# we can't use `axum_extras` because of freaking ephemera that depends on `actix_extras`.
|
|
# however, it seems that pulling in `actix_extras` pulls in just enough shared features to improve `IntoParams` for our Query attributes
|
|
utoipa = { workspace = true, features = ["actix_extras"] } # can't use `"axum_extras"` feature because ephemera uses `"actix_extras"` -.-'
|
|
utoipa-swagger-ui = { workspace = true, features = ["axum"] }
|
|
|
|
# if we ever wanted redoc/rapidoc bridges:
|
|
#utoipa-redoc = { version = "0.1.0", features = ["axum"] }
|
|
#utoipa-rapidoc = { version = "0.1.0", features = ["axum"] }
|
|
|
|
nym-config = { path = "../common/config" }
|
|
nym-crypto = { path = "../common/crypto", features = ["asymmetric" ]}
|
|
nym-node-requests = { path = "nym-node-requests", default-features = false, features = ["openapi"]}
|
|
nym-task = { path = "../common/task" }
|
|
nym-wireguard = { path = "../common/wireguard" }
|
|
nym-wireguard-types = { path = "../common/wireguard-types", features = ["verify"] }
|
|
|
|
[dev-dependencies]
|
|
dashmap = { workspace = true }
|
|
rand = "0.7.3"
|
|
nym-crypto = { path = "../common/crypto", features = ["rand"]}
|
|
hmac = "0.12.1"
|
|
x25519-dalek = { version = "2.0.0" }
|