We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04dd86b commit 4d7e5efCopy full SHA for 4d7e5ef
ios/build-rust-library.sh
@@ -2,7 +2,7 @@
2
3
set -euvx
4
5
-if [ "$#" -gt 2 ]
+if [ "$#" -gt 2 ] || [ "$#" -eq 0 ]
6
then
7
echo "Usage (note: only call inside xcode!):"
8
echo "build-rust-library.sh <FFI_TARGET> [FFI_FEATURES]"
@@ -13,6 +13,8 @@ fi
13
FFI_TARGET=$1
14
15
# Enable cargo features by passing feature names to this script, i.e. build-rust-library.sh mullvad-api api-override
16
+# If more than one feature flag needs to be enabled, pass in a single argument all the features flags separated by spaces
17
+# build-rust-library.sh mullvad-api "featureA featureB featureC"
18
FEATURE_FLAGS=
19
if [[ "$#" -eq 2 ]] ; then
20
FEATURE_FLAGS=$2
0 commit comments