chore: upgrade Rust edition 2018 2021

- Cargo.toml: edition 2021
- plugin-sdk/Cargo.toml: edition 2021
- plugins/example-plugin/Cargo.toml: edition 2021

Rust 2021 edition 带来更好的闭包捕获规则、IntoIterator for arrays 等改进。
This commit is contained in:
2026-03-31 23:21:57 +08:00
parent d30c111c71
commit 47d6b06ced
9 changed files with 1708 additions and 28 deletions

View File

@@ -76,13 +76,13 @@ export PATH="/home/showen/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bi
| 成员 | 失败计数 | 等级 | 更新时间 |
|------|---------|------|---------|
| 刘建国(PM) | 0 | — | 2026-03-14 |
| 张明远 | 0 | — | 2026-03-14 |
| 李思琪 | 0 | — | 2026-03-14 |
| 王浩然 | 0 | — | 2026-03-14 |
| 赵雨薇 | 0 | — | 2026-03-14 |
| 林晓峰(QA) | 0 | — | 2026-03-14 |
| 周雅婷 | 0 | — | 2026-03-14 |
| 刘建国(PM) | 0 | — | 2026-03-19 |
| 张明远 | 0 | — | 2026-03-19 |
| 李思琪 | 0 | — | 2026-03-19 |
| 王浩然 | 0 | — | 2026-03-19 |
| 赵雨薇 | 0 | — | 2026-03-19 |
| 林晓峰(QA) | 0 | — | 2026-03-19 |
| 周雅婷 | 0 | — | 2026-03-19 |
> 计数累加:审核不合格+1 / 返工+1 / 违反铁律+1。重置连续2次成功→0 / Phase切换→全员0。
@@ -90,14 +90,14 @@ export PATH="/home/showen/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bi
## 当前状态
- **质量**: 107/107 Rust 核心测试 + 8 集成测试 = 115/115 全通过,零 warning; Flutter 15/15 测试通过,零 analyze 问题
- **里程碑**: M1.1 完成M1.2 进行中(P0 缺口已修 + 8 个集成测试就绪
- **质量**: 115/115 已在 Linux ARM64 验证107 核心 + 8 集成+ 24 M1.2 集成测试已写入本地,**待目标机 `cargo test` 验收后方可计入**Flutter 15/15零 warning
- **里程碑**: M1.1 完成M1.2 进行中(集成测试全部编写完毕,待 Linux 验收后收尾
- **DevicePlugin 能力**: Display + SleepInhibit + Backlight + Cursor (Linux ARM64)
- **ScreenPlugin**: 已重构为 thin wrapper
- **Flutter App**: 完成度 ~98%, APK v0.3 (52.6MB) 已编译, cupertino_icons 已修复
- **API 文档**: 已校准(以 routes.rs 为唯一权威重写)
- **示例插件**: 已完善为开发者参考模板 (manifest.json + 请求/响应示范 + 7 个测试)
- **M1.2 进展**: 插件管理 API 闭环已修 + ServiceManager 集成测试 8/8 通过 + 测试计划就绪
- **M1.2 进展**: 5 项完成 — 插件管理API闭环 + ServiceManager集成测试(8) + HTTP路由测试(9) + 动态插件测试(15) + 风险3消息链路确认**最终验收缺 Linux cargo test 证据 + git commit**
### 已修复(本轮)
@@ -130,12 +130,16 @@ export PATH="/home/showen/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bi
25. ~~**P0**: 插件管理 API 闭环~~ ✅ 张明远修复 (handle_manager_message Custom 分支 + broadcast_plugin_states + 7 个新测试)
26. ~~**M1.2**: ServiceManager 集成测试~~ ✅ 周雅婷完成 (tests/m1_2_service_manager.rs, 8 个测试全通过)
27.**M1.2**: HTTP API 路由集成测试 — 赵雨薇编写完成 (tests/m1_2_http.rs, 9 个测试:播放控制/配置重载/播放列表快照/插件管理闭环/路径穿越防护)**待 Linux ARM64 cargo test 验证 + git commit**
28.**M1.2**: 动态插件集成测试 — 张明远编写完成 (tests/m1_2_dynamic_plugin.rs, 15 个测试manifest校验/生命周期/热替换回滚/版本GC/路径穿越)**待 Linux ARM64 cargo test 验证 + git commit**
29.**M1.2 风险3**: 消息链路分析 — 赵雨薇在 m1_2_http.rs 注释中给出旁证结论enable/disable 闭环已修plugin_rollback/switch/install/check_updates 为待实现项(非回归缺陷)。**WifiProvisioned/DeviceEvent 生产者确认尚未系统性核查(王浩然原任务 agent 失败,需补派)**
### 待处理
1. DevicePlugin 阶段三framebuffer迁移/触摸/音频/多平台)— Phase 2 规划
2. M1.2 集成测试继续 — HTTP API 路由测试 + 动态插件测试
3. M1.2 风险 3: WifiProvisioned/DeviceEvent/部分Custom消息无生产者/消费者确认
1. **[M1.2 验收 — 阻塞]** 在 Linux ARM64 执行 `cargo test --workspace`,确认 24 个新集成测试全通过,输出贴到 TEAM_CHAT.md → 再 git commit 三个测试文件
2. **[M1.2 收尾]** 风险3 WifiProvisioned/DeviceEvent 生产者代码核查(补派王浩然)
3. **[M1.2 收尾]** 全部测试通过后更新 PROGRESS.md M1.2 章节 + 打 tag
4. DevicePlugin 阶段三framebuffer迁移/触摸/音频/多平台)— Phase 2 规划
---