ncro/config: replace YAML configuration file with TOML
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Ifb3cf9ad9747795b44eff1ee8cd538536a6a6964
This commit is contained in:
parent
56413f4b60
commit
49545fdb6b
20 changed files with 280 additions and 199 deletions
56
Cargo.toml
56
Cargo.toml
|
|
@ -1,5 +1,5 @@
|
|||
[workspace]
|
||||
members = [ "crates/*" ]
|
||||
members = [ "crates/*", "ncro" ]
|
||||
resolver = "3"
|
||||
|
||||
[workspace.package]
|
||||
|
|
@ -8,6 +8,18 @@ license = "EUPL-1.2"
|
|||
version = "2.0.0"
|
||||
|
||||
[workspace.dependencies]
|
||||
# Workspace components
|
||||
ncro-config = { path = "./crates/config", version = "2.0.0" }
|
||||
ncro-db = { path = "./crates/db", version = "2.0.0" }
|
||||
ncro-discovery = { path = "./crates/discovery", version = "2.0.0" }
|
||||
ncro-health = { path = "./crates/health", version = "2.0.0" }
|
||||
ncro-mesh = { path = "./crates/mesh", version = "2.0.0" }
|
||||
ncro-metrics = { path = "./crates/metrics", version = "2.0.0" }
|
||||
ncro-narinfo = { path = "./crates/narinfo", version = "2.0.0" }
|
||||
ncro-router = { path = "./crates/router", version = "2.0.0" }
|
||||
ncro-server = { path = "./crates/server", version = "2.0.0" }
|
||||
|
||||
# Other deps
|
||||
anyhow = "1.0.102"
|
||||
axum = "0.8.9"
|
||||
base64 = "0.22.1"
|
||||
|
|
@ -25,58 +37,20 @@ reqwest = { version = "0.13.3", default-features = false }
|
|||
rmp-serde = "1.3.1"
|
||||
serde = "1.0.228"
|
||||
serde_json = "1.0.149"
|
||||
serde_yaml = "0.9.34"
|
||||
sqlx = { version = "0.8.6", default-features = false }
|
||||
tempfile = "3.27.0"
|
||||
thiserror = "2.0.18"
|
||||
tokio = "1.52.3"
|
||||
toml = "1.1.2"
|
||||
tower = "0.5.3"
|
||||
tower-http = "0.6.10"
|
||||
tracing = "0.1.44"
|
||||
tracing-subscriber = "0.3.23"
|
||||
url = "2.5.8"
|
||||
|
||||
ncro-config = { path = "crates/config", version = "2.0.0" }
|
||||
ncro-db = { path = "crates/db", version = "2.0.0" }
|
||||
ncro-discovery = { path = "crates/discovery", version = "2.0.0" }
|
||||
ncro-health = { path = "crates/health", version = "2.0.0" }
|
||||
ncro-mesh = { path = "crates/mesh", version = "2.0.0" }
|
||||
ncro-metrics = { path = "crates/metrics", version = "2.0.0" }
|
||||
ncro-narinfo = { path = "crates/narinfo", version = "2.0.0" }
|
||||
ncro-router = { path = "crates/router", version = "2.0.0" }
|
||||
ncro-server = { path = "crates/server", version = "2.0.0" }
|
||||
|
||||
[package]
|
||||
name = "ncro"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
|
||||
[dependencies]
|
||||
anyhow.workspace = true
|
||||
axum.workspace = true
|
||||
clap = { workspace = true, features = [ "derive", "env" ] }
|
||||
hex.workspace = true
|
||||
tokio = { workspace = true, features = [ "macros", "rt-multi-thread", "signal", "time", "net", "fs" ] }
|
||||
tracing.workspace = true
|
||||
tracing-subscriber = { workspace = true, features = [ "env-filter", "json" ] }
|
||||
|
||||
ncro-config.workspace = true
|
||||
ncro-db.workspace = true
|
||||
ncro-discovery.workspace = true
|
||||
ncro-health.workspace = true
|
||||
ncro-mesh.workspace = true
|
||||
ncro-metrics.workspace = true
|
||||
ncro-router.workspace = true
|
||||
ncro-server.workspace = true
|
||||
|
||||
[dev-dependencies]
|
||||
tempfile.workspace = true
|
||||
tower = { workspace = true, features = [ "util" ] }
|
||||
|
||||
# See:
|
||||
# <https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html>
|
||||
[lints.clippy]
|
||||
[workspace.lints.clippy]
|
||||
cargo = { level = "warn", priority = -1 }
|
||||
complexity = { level = "warn", priority = -1 }
|
||||
nursery = { level = "warn", priority = -1 }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue