- secrecy: migrate Secret<String> -> SecretString across services; adjust usages - warnings: clean unused imports/structs (no behavior change) - docker-compose: remove unnecessary host port mappings; rely on app-network; keep frontend only - build: set build.context to repo root; reference per-service Dockerfiles - add: root .dockerignore to exclude target/node_modules/ref/archive/docs and logs - data-persistence-service: refine cargo-chef with path deps; slim context; copy correct targets - Dockerfiles: normalize multi-stage builds; fix WORKDIR and release binary paths - nats: resolve 4222 conflict by not binding to host - verified: all rust services build successfully with new flow
23 lines
737 B
TOML
23 lines
737 B
TOML
[package]
|
|
name = "common-contracts"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
description = "Shared strongly-typed contracts (models, DTOs, messages, observability) across services."
|
|
authors = ["Lv, Qi <lvsoft@gmail.com>"]
|
|
|
|
[lib]
|
|
name = "common_contracts"
|
|
path = "src/lib.rs"
|
|
|
|
[dependencies]
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
uuid = { version = "1", features = ["serde", "v4"] }
|
|
rust_decimal = { version = "1.36", features = ["serde"] }
|
|
utoipa = { version = "5.4", features = ["chrono", "uuid"] }
|
|
sqlx = { version = "0.8.6", features = [ "runtime-tokio-rustls", "postgres", "chrono", "uuid", "json", "rust_decimal" ] }
|
|
service_kit = { version = "0.1.2" }
|
|
|
|
|