chore: replace placeholder package with role-named workspace
This commit is contained in:
@@ -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
|
||||
@@ -0,0 +1 @@
|
||||
//! HTTP API: router, handlers, and OpenAPI document.
|
||||
@@ -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
|
||||
@@ -0,0 +1 @@
|
||||
//! Database access. All SQL lives in this crate.
|
||||
@@ -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
|
||||
@@ -0,0 +1 @@
|
||||
//! Core domain types and invariants. No I/O dependencies.
|
||||
@@ -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
|
||||
@@ -0,0 +1 @@
|
||||
//! Server wiring: configuration and startup.
|
||||
@@ -0,0 +1,3 @@
|
||||
fn main() {
|
||||
println!("placeholder");
|
||||
}
|
||||
Reference in New Issue
Block a user