feat(deps): add modbus, database, mocking, and async trait dependencies

Adds tokio-modbus 0.17.0 for Modbus RTU over TCP communication,
sqlx with runtime-tokio and sqlite features for async database operations,
mockall 0.13 for trait mocking in tests, and async-trait 0.1 for async trait support.

Ref: T001 (specs/001-modbus-relay-control)
This commit is contained in:
2026-01-01 13:54:13 +01:00
parent a683810bdc
commit 63875d4909
4 changed files with 1020 additions and 14 deletions

View File

@@ -12,7 +12,7 @@
**Purpose**: Initialize project dependencies and directory structure
- [ ] **T001** [Setup] [TDD] Add Rust dependencies to Cargo.toml
- [x] **T001** [Setup] [TDD] Add Rust dependencies to Cargo.toml
- Add: tokio-modbus = "0.17.0", sqlx = { version = "0.8", features = ["runtime-tokio", "sqlite"] }, mockall = "0.13", async-trait = "0.1"
- **Test**: cargo check passes
- **Complexity**: Low | **Uncertainty**: Low
@@ -37,7 +37,7 @@
- [ ] **T005** [P] [Setup] [TDD] Add SQLite schema file
- Create infrastructure/persistence/schema.sql with relay_labels table
- Table: relay_labels (relay_id INTEGER PRIMARY KEY CHECK(relay_id BETWEEN 1 AND 8), label TEXT NOT NULL CHECK(length(label) <= 50))
- Table: `relay_labels (relay_id INTEGER PRIMARY KEY CHECK(relay_id BETWEEN 1 AND 8), label TEXT NOT NULL CHECK(length(label) <= 50))`
- **Test**: Schema file syntax is valid SQL
- **Complexity**: Low | **Uncertainty**: Low