lorryjovens-hub/claude-code-rust
🚀 Rust 全量重构的 Claude Code - 性能提升 2.5x,体积减少 97% | High-performance Rust implementation of Claude Code with 2.5x faster startup and 97% smaller binary
Platform-specific configuration:
{
"mcpServers": {
"claude-code-rust": {
"command": "npx",
"args": [
"-y",
"claude-code-rust"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
兄弟们今天也是我狂肝花了3个通宵的时间肝出来的,截止2026.4.3.12点,根据rust版本的CC统计也是已经完成了15000行rust源码,和14万+总代码行数 这是中国国内首个claude code 的 rust语言重构包,考虑到原版TS源代码的封号和后门问题,我已经在重构的过程中剔除掉了部分限制!
现在已经基本完成了大部分的功能构建。感谢兄弟们大力支持!!!具体情况可以关注B站:lorry黄同学 需要源码的万字分析文档的可以看我飞书:https://my.feishu.cn/wiki/GfQGwIen9izVnikrchFcKOtOnTb,
让我们一起为中国开源模型迭代添砖加瓦!
该项目包含 typescript源码 🚀 Anthropic Claude Code 的 Rust 全量重构版本 - 性能提升 2.5x,体积减少 97%,零依赖原生安全
这是一个从零开始用 Rust 完整重构的 Claude Code 工具链,在保持 100% 功能兼容性的同时:
| 指标 | Rust 版本 | TypeScript 版本 | 性能提升 | |------|-----------|-----------------|----------| | 平均启动时间 | 63ms ⚡ | 158ms | 2.5x 更快 🚀 | | 冷启动 | 58ms | 152ms | 2.6x 更快 | | 热启动 (缓存) | 61ms | 156ms | 2.5x 更快 | | 最快启动 | 51ms | 145ms | 2.8x 更快 | | 最慢启动 | 74ms | 172ms | 2.3x 更快 |
| 指标 | Rust 版本 | TypeScript 版本 | 减少比例 | |------|-----------|-----------------|----------| | 单文件可执行体 | 5.07 MB 🎯 | - | - | | npm 安装后体积 | 仅需编译 | 164.32 MB 📦 | 97% 减少 | | node_modules 大小 | 0 MB (无依赖) | ~156 MB | 100% 消除 | | 运行时依赖 | 0 MB (内置) | ~8 MB (Node.js) | 100% 消除 | | Docker 镜像 | ~20 MB (含OS) | ~600 MB+ | 96% 减少 |
| 命令操作 | Rust 版本 | TypeScript 版本 | 提升倍数 | |----------|-----
Loading reviews...