feat: Phase2 Task1 — DeviceCommand添加SetCursorVisible + DeviceCapability::Cursor

This commit is contained in:
showen
2026-03-13 07:14:44 +08:00
parent 28566386d2
commit f0605196fe
4 changed files with 48 additions and 0 deletions

View File

@@ -59,3 +59,13 @@
- 所有类型正确派生 Debug, Clone, Serialize, Deserialize跨 FFI 要求)
- 修复了 tests.rs 中的 match 穷尽性检查(新增三个 message 变体)
- cargo check 零 warningcargo test 全部通过66 个测试)
## 个人经验 (2026-03-13 - DevicePlugin 阶段二 Task 1)
- 完成 DeviceCommand 扩展,添加光标控制命令
- 在 DeviceCommand 中添加 SetCursorVisible(bool) 变体
- 在 DeviceCapability 中添加 Cursor 变体
- 同步更新 plugin-sdk/src/lib.rs 保持 ABI 一致性
- 文档注释说明 Linux 平台通过 unclutter 实现光标隐藏
- cargo check --workspace --all-targets 零 warning
- cargo test --workspace 全部通过73 个测试)
- 为 Task 2LinuxArm64Backend 实现)铺平道路