common/build-style/cargo.sh: use offline install

This prevents `cargo install` from wasting time fetching the crate registry.
This commit is contained in:
0x5c 2022-05-07 19:41:22 -04:00 committed by Érico Nogueira Rolim
parent 97bd75d860
commit 52729f37f5
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ do_install() {
: ${make_install_args:=--path .}
${make_cmd} install --target ${RUST_TARGET} --root="${DESTDIR}/usr" \
--locked ${configure_args} ${make_install_args}
--offline --locked ${configure_args} ${make_install_args}
rm -f "${DESTDIR}"/usr/.crates.toml
rm -f "${DESTDIR}"/usr/.crates2.json