cargo
When building “pure” Rust packages with the cargo build tool, ensure you use the %cargo* macros to allow boulder to control the various tuning options and debuginfo behavior.
%cargo_set_environment
Set environmental variables for Cargo build
environment: | %cargo_set_environment%cargo_fetch
Fetch dependencies
%cargo_vendor
Vendor all dependencies
%cargo_build
Build the rust project to %(cargo_target_dir)
%cargo_install
Install the build artefacts from %(cargo_target_dir)
%cargo_test
Run tests
%cargo_home_breaks_this_build
Use this macro to indicate that setting CARGO_HOME breaks this build
environment: | %cargo_home_breaks_this_build