feat(power): Power1 стаб + dev-mock fake-ACC (feature dev-mocks)

PowerService (Power1, стаб running) + PowerMock (dev.PowerMock1, разделяет State через Arc<Mutex>).
dev-mocks — default-фича; прод (--no-default-features) mock не регистрирует.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Alexander <akotenev2003@gmail.com>
This commit is contained in:
2026-06-24 12:46:22 +03:00
parent b8f084b1e1
commit 9aeff2aa7d
6 changed files with 229 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
[package]
name = "shturman-power"
version = "0.0.0"
edition.workspace = true
license.workspace = true
[features]
# dev-mocks — вкл. в dev (fake-ACC для тестов/v0.3); прод выключает `--no-default-features`.
default = ["dev-mocks"]
dev-mocks = []
[dependencies]
shturman-ipc = { path = "../../shturman-ipc" }
shturman-common = { path = "../../shturman-common" }
zbus.workspace = true
tokio.workspace = true
anyhow.workspace = true
tracing.workspace = true
[dev-dependencies]
tempfile.workspace = true
shturman-sdk = { path = "../../shturman-sdk" }