build-style/cargo: use env var to select sparse index mode

This commit is contained in:
Marcin Puc 2023-04-02 12:28:59 +02:00 committed by classabbyamp
parent 2bcb66a617
commit 3641d47af7
2 changed files with 5 additions and 3 deletions

View file

@ -8,4 +8,6 @@ if [ "$CROSS_BUILD" ]; then
makedepends+=" rust-std"
fi
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
build_helper+=" rust"