将庞大的 main.rs 文件按功能拆分为多个模块:models.rs 包含数据结构,error.rs 包含错误处理逻辑,render.rs 包含渲染逻辑,repl.rs 包含交互式循环。main.rs 现在仅作为精简的入口点。所有现有测试均通过,功能保持不变。 |
||
|---|---|---|
| .. | ||
| .claw/sessions | ||
| src | ||
| tests | ||
| Cargo.toml | ||
| RUN.md | ||
| build.rs | ||
将庞大的 main.rs 文件按功能拆分为多个模块:models.rs 包含数据结构,error.rs 包含错误处理逻辑,render.rs 包含渲染逻辑,repl.rs 包含交互式循环。main.rs 现在仅作为精简的入口点。所有现有测试均通过,功能保持不变。 |
||
|---|---|---|
| .. | ||
| .claw/sessions | ||
| src | ||
| tests | ||
| Cargo.toml | ||
| RUN.md | ||
| build.rs | ||
A Fortis Scientia site