build-style/cargo.sh: add

This commit is contained in:
Rasmus Thomsen
2018-09-16 21:39:23 +02:00
committed by Enno Boland
parent 17eda45988
commit 0318d0385a
3 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
hostmakedepends+=" cargo"
if [ "$CROSS_BUILD" ]; then
makedepends+=" rust"
fi
# Use the config we set in do_configure
export CARGO_HOME="$wrksrc/.cargo"
export PKG_CONFIG_ALLOW_CROSS=1