Guide agents through Cargo workspaces, feature management, build scripts (build.rs), CI integration, incremental compilation, and the Cargo tool ecosystem.
| cargo:rerun-if-changed=FILE | Re-run build script if file changes | | cargo:rerun-if-env-changed=VAR | Re-run if env var changes | | cargo:rustc-link-lib=NAME | Link library | | cargo:rustc-link-search=PATH | Add library search path | | cargo:rustc-cfg=FLAG | Enable #[cfg(FLAG)] in code | | cargo:rustc-env=KEY=VAL | Set env!("KEY") at compile time |
For workspace patterns and dependency resolution details, see references/workspace-patterns.md.
Cargo workflow skill for Rust projects. Use when managing workspaces, feature flags, build scripts, cargo cache, incremental builds, dependency auditing, or CI configuration with Cargo. Activates on queries about cargo workspaces, Cargo.toml features, build.rs, cargo nextest, cargo deny, cargo check vs build, or Cargo.lock management. Source: mohitmishra786/low-level-dev-skills.