Event ·Multi-source

rust-anything:给 AI 改写 Rust 加一道行为验收关卡

rust-anything 是一个开源工具(github.com/erkamyaman/rust-anything),定位为 AI 编程助手的“改写说明书 + 验收工具”,用于把 TypeScript、Python、Go、Java 等语言的老项目逐步迁移到 Rust。核心做法是先用原始程序跑一批输入,把全部输出记录下来作为基线。 AI 每改写一块代码,工具就把同一批输入喂给新的 Rust 代码,逐条对比输出是否与基线一致,保证改写过程中行为不变。这种“录基线—改写—回放对比”的流程,把迁移风险从“信 AI 的感觉”变成可验证的机器判定,适合担心 AI 重写引入隐性 bug 的开发者。

Current read

程序员把老项目交给 AI 重写成 Rust 最怕行为变了,这个工具先把旧代码输出录下来,AI 每改一块就用同样的输入回放对比。比单纯靠 AI 自查靠谱,有迁移需求的人可以直接上手试试。

4 sources24° AI heatLast updated 2026/11/17 14:26:00

Evidence

4 sources
Related source 1Guillermo Rauch
View source
Related source 2AI Engineer
View source
Related source 3向阳乔木
View source

Conflict check

Dedup data only shows that these sources discuss the same event, not that they agree. There is no structured supporting or refuting evidence yet, so no conflict is inferred automatically.

rust-anything:给 AI 改写 Rust 加一道行为验收关卡 · 事件专题 | AITOP