chore: replace placeholder package with role-named workspace

This commit is contained in:
2026-06-02 00:38:53 +02:00
parent 87f06d1f2d
commit b97c950f77
12 changed files with 3035 additions and 8 deletions
+18
View File
@@ -0,0 +1,18 @@
[package]
name = "api"
version = "0.0.0"
edition.workspace = true
rust-version.workspace = true
[dependencies]
axum.workspace = true
serde.workspace = true
utoipa.workspace = true
db = { path = "../db" }
[dev-dependencies]
tokio.workspace = true
tower.workspace = true
http-body-util.workspace = true
serde_json.workspace = true
sqlx.workspace = true
+1
View File
@@ -0,0 +1 @@
//! HTTP API: router, handlers, and OpenAPI document.
+12
View File
@@ -0,0 +1,12 @@
[package]
name = "db"
version = "0.0.0"
edition.workspace = true
rust-version.workspace = true
[dependencies]
sqlx.workspace = true
thiserror.workspace = true
[dev-dependencies]
tokio.workspace = true
+1
View File
@@ -0,0 +1 @@
//! Database access. All SQL lives in this crate.
+9
View File
@@ -0,0 +1,9 @@
[package]
name = "domain"
version = "0.0.0"
edition.workspace = true
rust-version.workspace = true
[dependencies]
uuid.workspace = true
serde.workspace = true
+1
View File
@@ -0,0 +1 @@
//! Core domain types and invariants. No I/O dependencies.
+29
View File
@@ -0,0 +1,29 @@
[package]
name = "server"
version = "0.0.0"
edition.workspace = true
rust-version.workspace = true
[lib]
path = "src/lib.rs"
[[bin]]
name = "server"
path = "src/main.rs"
[dependencies]
tokio.workspace = true
axum.workspace = true
clap.workspace = true
anyhow.workspace = true
tracing.workspace = true
tracing-subscriber.workspace = true
api = { path = "../api" }
db = { path = "../db" }
[dev-dependencies]
reqwest.workspace = true
serde_json.workspace = true
api = { path = "../api" }
db = { path = "../db" }
sqlx.workspace = true
+1
View File
@@ -0,0 +1 @@
//! Server wiring: configuration and startup.
+3
View File
@@ -0,0 +1,3 @@
fn main() {
println!("placeholder");
}