feature-implement

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Feature 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

核心流程

  1. Planning - Understand requirements and constraints
  2. Design - Architecture and module structure
  3. Implementation - Write code following patterns
  4. Testing - Add tests with >90% coverage
  5. Documentation - Update docs and examples
See process.md for detailed phases and patterns.md for Rust code patterns.
  1. 规划 - 理解需求与约束条件
  2. 设计 - 架构与模块结构
  3. 开发 - 遵循代码模式编写代码
  4. 测试 - 添加测试,确保覆盖率>90%
  5. 文档 - 更新文档与示例
详细阶段请查看**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