DOC-005 定义 App-Rust 调用协议 #5
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
编写 docs/app-rust-bridge.md,定义 App 调 Rust 的函数边界。
App 调用 Rust(至少):
detect_material_type、open_document、get_document_info、get_markdown_blocks、get_text_content、search_document、update_reading_position、export_pending_events、create_note_anchor
Rust 不允许直接做:
download_file、upload_reading_events、call_ai_chat、save_note_to_backend、share_file、delete_material
验收标准:文档存在、明确 Rust 不负责网络、明确文件由 App 下载到本地后交 path/bytes 给 Rust、明确阅读事件由 Rust 生成 App 负责上传
完成项
✅ docs/app-rust-bridge.md 已编写并推送
文档内容
Rust 暴露的 11 个函数
App 侧 8 项职责
download_file / upload_reading_events / save_note / call_ai_chat / share_file / delete_material / get_user_token / open_system_preview
附带内容
M0 完成状态
⬜ DOC-001 workspace ✅
⬜ DOC-002 README + docs ✅
⬜ DOC-003 格式分级 ✅
⬜ DOC-004 核心数据模型 ✅
⬜ DOC-005 调用协议 ✅
M0 全部 5 个 Issue 均已完成,可进行里程碑审查。