项目实践
ups120-daemon
Rust daemon/service around the UPS120 device, with a plan doc and install helper; appears to include DB migration tooling. Evidence: README.md, Cargo.toml, PLAN.md, alembic/.
目录
技术栈
运行与交付
- 能力标记
- cargo_toml
配置与质量
- 配置文件
- .gitignore
- .gitmodules
- .roomodes
- Cargo.toml
- alembic.ini
- lefthook.yml
其他信息
- Cargo
- Deps main
- binrw
- bitflags
- bq25730-async-rs
- bq769x0-async-rs
JSON
{
"cargo": {
"deps_main": [
"binrw",
"bitflags",
"bq25730-async-rs",
"bq769x0-async-rs",
"dotenv",
"env_logger",
"futures",
"log",
"rumqttc",
"rusb",
"serde",
"serde_json",
"tokio",
"tokio-util",
"uom"
]
},
"configs_root": [
".gitignore",
".gitmodules",
".roomodes",
"Cargo.toml",
"alembic.ini",
"lefthook.yml"
],
"markers_present": [
"cargo_toml"
]
}Basics
Rust daemon/service around the UPS120 device, with a plan doc and install helper; appears to include DB migration tooling. Evidence: README.md, Cargo.toml, PLAN.md, alembic/.
Architecture
- Single Rust binary crate with supporting assets and migrations. Evidence:
Cargo.toml,src/,alembic/. - Device-facing code/assets live under
device/. Evidence:device/.
Conventions
- Uses
lefthook.ymlfor repo hooks. Evidence:lefthook.yml. - Plans/workflow captured in-repo. Evidence:
PLAN.md.
Taste notes
Nice separation between “service core” and operational artifacts (migrations + install script), which helps deploy and maintain a device daemon in the real world.