- Add domain types: RelayId newtype and RepositoryError enum - Implement SqliteRelayLabelRepository with in-memory test support - Create relay_labels migration with SQLx compile-time verification - Add comprehensive integration test suite (266 lines) Ref: T006 (specs/001-modbus-relay-control)
39 lines
1.2 KiB
TOML
39 lines
1.2 KiB
TOML
[package]
|
|
name = "sta"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
publish = false
|
|
authors = ["Lucien Cartier-Tilet <lucien@phundrak.com>"]
|
|
license = "AGPL-3.0-only"
|
|
|
|
[lib]
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
path = "src/main.rs"
|
|
name = "sta"
|
|
|
|
[dependencies]
|
|
async-trait = "0.1.89"
|
|
chrono = { version = "0.4.42", features = ["serde"] }
|
|
config = { version = "0.15.19", features = ["yaml"] }
|
|
dotenvy = "0.15.7"
|
|
governor = "0.10.4"
|
|
mockall = "0.14.0"
|
|
poem = { version = "3.1.12", default-features = false, features = ["csrf", "rustls", "test"] }
|
|
poem-openapi = { version = "5.1.16", features = ["chrono", "swagger-ui"] }
|
|
serde = "1.0.228"
|
|
serde_json = "1.0.148"
|
|
sqlx = { version = "0.8.6", features = ["runtime-tokio", "sqlite", "derive", "migrate"] }
|
|
thiserror = "2.0.17"
|
|
tokio = { version = "1.48.0", features = ["macros", "rt-multi-thread"] }
|
|
tokio-modbus = { version = "0.17.0", default-features = false, features = ["tcp"] }
|
|
tracing = "0.1.44"
|
|
tracing-subscriber = { version = "0.3.22", features = ["fmt", "std", "env-filter", "registry", "json", "tracing-log"] }
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3.15.0"
|
|
|
|
[lints.rust]
|
|
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tarpaulin_include)'] }
|