Build Utils
Build-time Tooling
Utilities for build scripts and other build time steps.
cc
⮳ for compiling C/C++ code within build scripts,
pkg-config
⮳ for finding system libraries
Recipe | Crates | Categories |
---|---|---|
Compile and Link Statically to a Bundled C Library | ||
Compile and Link Statically to a Bundled C++ Library | ||
Compile a C Library While Setting Custom Defines |
Build Caches
Recipe | Crates | Categories |
---|---|---|
Use sccache |
FIXME
Related Topics
Benchmarking | cargo bench (also part of the build/verification process) |
Code Generation | Often done with procedural macros or build scripts |
Cross-Compilation Tools | cross ⮳ simplifies cross-compilation using Docker |
Dependency Management | cargo ⮳ though primarily a package manager, it also handles build dependencies |
Documentation Generation | cargo doc though primarily for documentation, it's part of the build process |
Packaging | cargo-deb ⮳, cargo-rpm ⮳, create-dmg for creating distribution packages |
Task Runners | xtask ⮳ for managing complex build tasks, often used for CI/CD, testing, etc. |
Testing | cargo test |