b69c2e1e94
* move stats types from vpn-client to here * base stats api * change storage schema * add link to nymAPI for whitelisting * remove outdated comment * more comments update * example of chrono vs time * Add build.rs - exports DATABASE_URL so cargo check works - exports SQLX_OFFLINE for CI - added pg_up.sh which spawns PG container - required for cargo sqlx prepare * fixes time vs chrono issue and cleaner build with docker * add correct swagger types, with feature locking where relevant * apply dynco suggestions --------- Co-authored-by: dynco-nym <173912580+dynco-nym@users.noreply.github.com>
56 lines
1.8 KiB
TOML
56 lines
1.8 KiB
TOML
# Copyright 2025 - Nym Technologies SA <contact@nymtech.net>
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
[package]
|
|
name = "nym-statistics-api"
|
|
version = "0.1.0"
|
|
authors.workspace = true
|
|
repository.workspace = true
|
|
homepage.workspace = true
|
|
documentation.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
|
|
|
|
[dependencies]
|
|
anyhow.workspace = true
|
|
axum = { workspace = true, features = ["tokio", "macros"] }
|
|
axum-extra = { workspace = true, features = ["typed-header"] }
|
|
celes.workspace = true
|
|
clap = { workspace = true, features = ["cargo", "derive", "env", "string"] }
|
|
serde = { workspace = true, features = ["derive"] }
|
|
serde_json.workspace = true
|
|
sqlx = { workspace = true, features = [
|
|
"runtime-tokio-rustls",
|
|
"postgres",
|
|
"time",
|
|
] }
|
|
time.workspace = true
|
|
tokio = { workspace = true, features = ["rt-multi-thread"] }
|
|
tokio-util.workspace = true
|
|
tracing.workspace = true
|
|
tracing-subscriber = { workspace = true, features = ["env-filter"] }
|
|
tower-http = { workspace = true, features = ["cors", "trace"] }
|
|
url.workspace = true
|
|
utoipa = { workspace = true, features = ["axum_extras", "time"] }
|
|
utoipa-swagger-ui = { workspace = true, features = ["axum"] }
|
|
utoipauto.workspace = true
|
|
|
|
#internal
|
|
nym-bin-common = { path = "../common/bin-common" }
|
|
nym-http-api-client = { path = "../common/http-api-client" }
|
|
nym-http-api-common = { path = "../common/http-api-common", features = [
|
|
"middleware",
|
|
] }
|
|
nym-statistics-common = { path = "../common/statistics", features = [
|
|
"openapi",
|
|
] }
|
|
nym-task = { path = "../common/task" }
|
|
nym-validator-client = { path = "../common/client-libs/validator-client" }
|
|
|
|
[build-dependencies]
|
|
anyhow = { workspace = true }
|
|
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
|
|
sqlx = { workspace = true, features = ["runtime-tokio-rustls", "postgres"] }
|