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

12 lines
210 B
Bash
Raw Normal View History

2018-09-16 21:39:23 +02:00
hostmakedepends+=" cargo"
if ! [[ "$pkgname" =~ ^cargo-auditable(-bootstrap)?$ ]]; then
hostmakedepends+=" cargo-auditable"
fi
2018-09-16 21:39:23 +02:00
if [ "$CROSS_BUILD" ]; then
makedepends+=" rust-std"
2018-09-16 21:39:23 +02:00
fi
build_helper+=" rust"