Skip to content

Commit 264e6f8

Browse files
committed
Use rustc 1.73 to generate Swift bindings
1 parent 8d8a67b commit 264e6f8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scripts/uniffi_bindgen_generate_swift.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ $UNIFFI_BINDGEN_BIN generate bindings/ldk_node.udl --language swift -o "$BINDING
88
mkdir -p $BINDINGS_DIR
99

1010
# Install rust target toolchains
11-
rustup install nightly-2023-04-10
12-
rustup component add rust-src --toolchain nightly-2023-04-10
13-
rustup target add aarch64-apple-ios x86_64-apple-ios
14-
rustup target add aarch64-apple-ios-sim --toolchain nightly-2023-04-10
15-
rustup target add aarch64-apple-darwin x86_64-apple-darwin
11+
rustup install 1.73.0
12+
rustup component add rust-src --toolchain 1.73.0
13+
rustup target add aarch64-apple-ios x86_64-apple-ios --toolchain 1.73.0
14+
rustup target add aarch64-apple-ios-sim --toolchain 1.73.0
15+
rustup target add aarch64-apple-darwin x86_64-apple-darwin --toolchain 1.73.0
1616

1717
# Build rust target libs
1818
cargo build --profile release-smaller --features uniffi || exit 1
1919
cargo build --profile release-smaller --features uniffi --target x86_64-apple-darwin || exit 1
2020
cargo build --profile release-smaller --features uniffi --target aarch64-apple-darwin || exit 1
2121
cargo build --profile release-smaller --features uniffi --target x86_64-apple-ios || exit 1
2222
cargo build --profile release-smaller --features uniffi --target aarch64-apple-ios || exit 1
23-
cargo +nightly-2023-04-10 build --release --features uniffi --target aarch64-apple-ios-sim || exit 1
23+
cargo +1.73.0 build --release --features uniffi --target aarch64-apple-ios-sim || exit 1
2424

2525
# Combine ios-sim and apple-darwin (macos) libs for x86_64 and aarch64 (m1)
2626
mkdir -p target/lipo-ios-sim/release-smaller || exit 1

0 commit comments

Comments
 (0)