rzc:Write real Rust in your native language

Rust is powerful, but English error messages and unfamiliar terminology often discourage beginners before they even write their first line of code. The i18n-rust project aims to change that.

Its core idea is straightforward: write Rust in your native language. Developers can write real Rust programs using Chinese keywords, which rzc translates in real time into standard Rust and then hands off to the official toolchain for compilation and execution. Compilation, execution, dependencies, and the ecosystem are all real—not a toy.

The project also provides companion Chinese tutorials. You can learn step by step, chapter by chapter, without needing to memorize complicated things. Even better, rzc check translates rustc errors into Chinese diagnostic messages and provides instructional guidance on “what to do next.” Warning messages, diagnostics, error-correction messages, and more are all localized into Chinese. There is also a VS Code extension that can be used in VS Code-like IDEs in China.

If learners later want to return to the mainstream Rust ecosystem, rzc eject can export standard Rust code with one click, with no lock-in.

In short: the core of i18n-rust is writing Rust in your native language. It is suitable for people who want to learn Rust but are held back by the English barrier, and also for developers who want to re-understand Rust in Chinese.

This project is worth recommending to anyone around you who wants to learn Rust but is afraid of English error messages.

配套中文教程:https://my.feishu.cn/wiki/MPGFwrEKpi9wEbkobZ2c012UnXc

中国:i18n-rust:基于 Rust 生态的中文编程学习项目 - AtomGit
github: GitHub - liuqiTan80/i18n-rust · GitHub

Rust 很强,但英文报错和陌生术语,常常让初学者还没写出第一行代码就被劝退。i18n-rust 项目想改变这一点。

它的核心很直接:用母语编写 Rust。开发者可以用中文关键字写真正的 Rust 程序,由 rzc 实时翻译为标准 Rust,再交给官方工具链编译运行。编译、运行、依赖和生态都是真实的,不是玩具。

项目还提供配套中文教程,按章节一步一步学习即可,不需要复杂记忆。更友好的是,rzc check 会把 rustc 的报错翻译成中文诊断信息,并给出“下一步该做什么”的教学引导;中文告警信息、中文诊断信息、中文纠错信息等也全部中文化。有 VS Code 扩展插件可以用在国内类VS code IDE中使用。

如果学习者以后想回到主流 Rust 生态,rzc eject 可以一键导出标准 Rust 代码,没有锁定。

一句话:i18n-rust 的核心,是用母语编写 Rust。它适合想学 Rust、又被英语门槛挡住的人,也适合想用中文重新理解 Rust 的开发者。

这个项目值得推荐给身边想学 Rust 又怕英文报错的人。

This is ridiculous. I love it.

Can you show us a little example of how the i18n-ized Rust code would look like? I am just curious...

I see you have .qoder and .workbuddy in your .gitignore. I'm curious what config you use for these AI tools, could you show them?

我用AI写了i18n-rust项目,目标是让全世界的人都能用自己的母语编写真实的rust
项目中中文支持很完善,并配套了完整的中文教程,目前在推进中文版rust的自举

教程地址:https://my.feishu.cn/wiki/MPGFwrEKpi9wEbkobZ2c012UnXc
项目地址:GitHub - liuqiTan80/i18n-rust · GitHub
中国地址:i18n-rust:基于 Rust 生态的中文编程学习项目 - AtomGit

Everything was written using the DeepSeek V4 API, without any extra configuration.

具体的你可以去看看源代码,我现在正在推进全中文版rust,进行自举编译成原生的rust