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.
Abilità nel flusso di lavoro Cargo per progetti Rust. Da utilizzare durante la gestione di aree di lavoro, flag di funzionalità, script di build, cache di Cargo, build incrementali, controllo delle dipendenze o configurazione CI con Cargo. Si attiva su query su aree di lavoro cargo, funzionalità Cargo.toml, build.rs, cargo nextest, cargo aware, cargo check vs build o gestione Cargo.lock. Fonte: mohitmishra786/low-level-dev-skills.