Cargo workspace with five crates per architecture conventions:
- moments-entities: Source enum, Event, EventQuery, SourceSummary
- moments-core: EventReader / EventWriter ports
- moments-data: PgStore (sqlx postgres adapter) + 0001_init.sql
- moments-api: axum binary; /v1/{healthz,events,sources}
- moments-worker: skeleton; pollers land in step 2
Sources committed-to for ingestion: github, gitea, hg, bugzilla.
Workstation events explicitly retired (not deferred).
Build + clippy clean. sqlx queries use the runtime API for now;
will switch to compile-time-checked macros + .sqlx offline cache
once magrathea has the moments_{ro,rw} roles and database created.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
37 lines
1.3 KiB
TOML
37 lines
1.3 KiB
TOML
[workspace]
|
|
resolver = "3"
|
|
members = ["crates/*"]
|
|
|
|
[workspace.package]
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
rust-version = "1.85"
|
|
license = "GPL-3.0-or-later"
|
|
authors = ["Rob Thijssen <rthijssen@gmail.com>"]
|
|
|
|
[workspace.dependencies]
|
|
# entities
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
chrono = { version = "0.4", default-features = false, features = ["serde", "clock"] }
|
|
thiserror = "2"
|
|
|
|
# core / data
|
|
sqlx = { version = "0.8", default-features = false, features = ["postgres", "runtime-tokio-rustls", "macros", "migrate", "chrono", "json"] }
|
|
|
|
# binaries
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros", "signal", "time"] }
|
|
axum = "0.8"
|
|
tower-http = { version = "0.6", features = ["trace", "cors"] }
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
|
|
anyhow = "1"
|
|
reqwest = { version = "0.12", default-features = false, features = ["rustls-tls", "json", "gzip"] }
|
|
figment = { version = "0.10", features = ["toml", "env"] }
|
|
clap = { version = "4", features = ["derive", "env"] }
|
|
|
|
# internal
|
|
moments-entities = { path = "crates/moments-entities", version = "=0.1.0" }
|
|
moments-core = { path = "crates/moments-core", version = "=0.1.0" }
|
|
moments-data = { path = "crates/moments-data", version = "=0.1.0" }
|