rust-analyzer-cli 0.7.0

A library and CLI tool built on top of rust-analyzer for codebase navigation
Documentation
1
2
3
4
5
6
7
8
9
10
11
# 未完成改造路线

| 优先级 | 改造项 | 状态 | 当前缺口 | 下一步 |
|---|---|---|---|---|
| P1 | Trait/impl 导航 | 部分完成 | 已支持 trait/type 的 implementations 查询,但还没有 supertrait、inherent impl、associated item 和 generic bound 关系。 | 扩展 Rust-specific relations,并继续用 `tests/code_example.rs` 做自动化 fixture。 |
| P1 | Macro 支持 | 待开始 | 当前缺少宏调用、宏定义的完整导航覆盖,以及宏相关 outline/reference 场景。 | 先增加宏定义、宏调用、definition/reference 测试;宏展开按官方工具能力决定。 |
| P1 | Cargo workspace 模型 | 待开始 | 缺少 package/member、crate 所属关系、依赖关系、re-export、features 和 target/`cfg` 上下文。 | 只实现面向 agent 的最小 workspace context,不包装 Cargo 命令。 |
| P1 | Rust 类型语义 | 待开始 | hover 尚未结构化表达 generic 参数、where bound、associated type、lifetime、inferred type、trait bound 和 borrow/ownership。 | 设计稳定的 type/bound 响应,优先支持 generic、trait bound 和 associated type。 |
| P2 | body parser | 待开始 | body fallback 仍使用简单大括号扫描,raw string、宏、字符串和注释可能造成边界误判。 | 使用更可靠的 Rust range/parser 方案。 |
| P2 | Rust 语法边界测试 | 待开始 | 尚未完整覆盖宏、字符串、注释、raw string、嵌套 impl 和 cfg 场景。 | 扩展 `tests/code_example.rs` stub,并保留真实 daemon 集成测试。 |
| P2 | JSON schema | 部分完成 | symbol kind、relations、status、body、references 和 calls 已稳定,但 Rust 类型关系、宏和 workspace context 尚未表达。 | 在新增语义能力时继续扩展稳定的 Rust-specific JSON schema。 |