2 # This helper is for building rust projects which use cargo for building
6 : ${make_cmd:=cargo auditable}
8 ${make_cmd} build --release --locked --target ${RUST_TARGET} ${configure_args}
12 : ${make_cmd:=cargo auditable}
14 ${make_check_pre} ${make_cmd} test --release --locked --target ${RUST_TARGET} \
15 ${configure_args} ${make_check_args}
19 : ${make_cmd:=cargo auditable}
20 : ${make_install_args:=--path .}
22 ${make_cmd} install --target ${RUST_TARGET} --root="${DESTDIR}/usr
" \
23 --offline --locked ${configure_args} ${make_install_args}
25 rm -f "${DESTDIR}"/usr/.crates.toml
26 rm -f "${DESTDIR}"/usr/.crates2.json