cargoBuildHook: Fix features with __structuredAttrs
This commit is contained in:
parent
c81c241415
commit
6486868c28
@ -25,7 +25,14 @@ cargoBuildHook() {
|
||||
fi
|
||||
|
||||
if [ -n "${cargoBuildFeatures-}" ]; then
|
||||
cargoBuildFeaturesFlag="--features=${cargoBuildFeatures// /,}"
|
||||
if [ -n "$__structuredAttrs" ]; then
|
||||
OLDIFS="$IFS"
|
||||
IFS=','; cargoBuildFeaturesFlag="--features=${cargoBuildFeatures[*]}"
|
||||
IFS="$OLDIFS"
|
||||
unset OLDIFS
|
||||
else
|
||||
cargoBuildFeaturesFlag="--features=${cargoBuildFeatures// /,}"
|
||||
fi
|
||||
fi
|
||||
|
||||
(
|
||||
|
Loading…
Reference in New Issue
Block a user