feature-implement
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseFeature Implementation
功能实现
Systematic approach to implementing new features in the Rust memory system.
在Rust内存系统中实现新功能的系统化方法。
Quick Reference
快速参考
- Process - Implementation phases (planning, design, implementation, testing)
- Structure - Module structure and file organization
- Patterns - Code patterns and conventions
- Quality - Quality standards and checklists
- 流程 - 实现阶段(规划、设计、开发、测试)
- 结构 - 模块结构与文件组织
- 模式 - 代码模式与规范
- 质量 - 质量标准与检查清单
When to Use
适用场景
- Adding new functionality to the codebase
- Following project conventions for feature development
- Maintaining code quality and test coverage
- 为代码库添加新功能
- 遵循项目规范进行功能开发
- 维持代码质量与测试覆盖率
Core Process
核心流程
- Planning - Understand requirements and constraints
- Design - Architecture and module structure
- Implementation - Write code following patterns
- Testing - Add tests with >90% coverage
- Documentation - Update docs and examples
See process.md for detailed phases and patterns.md for Rust code patterns.
- 规划 - 理解需求与约束条件
- 设计 - 架构与模块结构
- 开发 - 遵循代码模式编写代码
- 测试 - 添加测试,确保覆盖率>90%
- 文档 - 更新文档与示例
详细阶段请查看**process.md,Rust代码模式请查看patterns.md**。
Project Standards
项目标准
- File size: ≤ 500 LOC per file
- Async/Tokio patterns for I/O
- Error handling:
anyhow::Result - Storage: Turso (durable) + redb (cache)
- Serialization: postcard
- 文件大小:每个文件≤500行代码(LOC)
- I/O操作采用Async/Tokio模式
- 错误处理:
anyhow::Result - 存储:Turso(持久化)+ redb(缓存)
- 序列化:postcard