Commit f09958fd authored by 4lDO2's avatar 4lDO2 🖖

Allow recipes that are Cargo workspaces to select individual packages,

by adding the CARGO_PACKAGE variable, which passes --package=PKG to
cargo rustc.
parent e1a5a2cc
......@@ -321,10 +321,16 @@ function op {
release_flag=
fi
if [ -n "$CARGO_PACKAGE" ]; then
package_flag="--package=$CARGO_PACKAGE"
else
package_flag=
fi
if [ "$skip" -eq "0" ]
then
cp -p "$ROOT/Xargo.toml" "Xargo.toml"
"${CARGO[@]}" "$CARGOBUILD" --target "$TARGET" $release_flag $CARGOFLAGS
"${CARGO[@]}" "$CARGOBUILD" --target "$TARGET" $release_flag $package_flag $CARGOFLAGS
fi
popd > /dev/null
;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment