什么是 rustc-basics?
用于系统编程的 Rust 编译器技能。在选择 RUSTFLAGS、配置 Cargo 配置文件、调整发布版本、读取程序集或 MIR 输出、了解单态化或诊断编译错误时使用。在有关 rustc 标志、Cargo.toml 配置文件、opt-level、LTO、codegen-units、target-cpu、emit asm、MIR 或 Rust 构建性能的查询时激活。 来源:mohitmishra786/low-level-dev-skills。
用于系统编程的 Rust 编译器技能。在选择 RUSTFLAGS、配置 Cargo 配置文件、调整发布版本、读取程序集或 MIR 输出、了解单态化或诊断编译错误时使用。在有关 rustc 标志、Cargo.toml 配置文件、opt-level、LTO、codegen-units、target-cpu、emit asm、MIR 或 Rust 构建性能的查询时激活。
通过命令行快速安装 rustc-basics AI 技能到你的开发环境
来源:mohitmishra786/low-level-dev-skills。
Guide agents through Rust compiler invocation: RUSTFLAGS, Cargo profile configuration, build modes, MIR and assembly inspection, monomorphization, and common compilation error patterns.
| lto = true (fat) | Best optimization, slowest link | | lto = "thin" | Good optimization, parallel link | | codegen-units = 1 | Best inlining, slower compile | | panic = "abort" | Removes unwind tables, smaller binary | | opt-level = "z" | Aggressive size reduction |
Rust generics are monomorphized — each concrete type instantiation produces separate code. This causes:
用于系统编程的 Rust 编译器技能。在选择 RUSTFLAGS、配置 Cargo 配置文件、调整发布版本、读取程序集或 MIR 输出、了解单态化或诊断编译错误时使用。在有关 rustc 标志、Cargo.toml 配置文件、opt-level、LTO、codegen-units、target-cpu、emit asm、MIR 或 Rust 构建性能的查询时激活。 来源:mohitmishra786/low-level-dev-skills。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/mohitmishra786/low-level-dev-skills --skill rustc-basics用于系统编程的 Rust 编译器技能。在选择 RUSTFLAGS、配置 Cargo 配置文件、调整发布版本、读取程序集或 MIR 输出、了解单态化或诊断编译错误时使用。在有关 rustc 标志、Cargo.toml 配置文件、opt-level、LTO、codegen-units、target-cpu、emit asm、MIR 或 Rust 构建性能的查询时激活。 来源:mohitmishra786/low-level-dev-skills。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/mohitmishra786/low-level-dev-skills --skill rustc-basics 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/mohitmishra786/low-level-dev-skills