void-packages/common/environment/build-style/cargo.sh

8 lines
117 B
Bash

hostmakedepends+=" cargo"
if [ "$CROSS_BUILD" ]; then
makedepends+=" rust-std"
fi
export PKG_CONFIG_ALLOW_CROSS=1