Skip to content

Commit 87218d1

Browse files
committed
Remove wasm-unstable-single-threaded from the matrix-sdk-ffi Cargo.toml file
This feature needs to be enabled for Wasm support of the matrix-sdk-ffi crate, but it's only available on 0.29+ of uniffi. So we remove any mention of this feature since we're not building for Wasm here anyways.
1 parent 9bf1d1e commit 87218d1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rebuild_rust_sdk.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,13 @@ echo 'building matrix-sdk-ffi...';
4444
cd $RUST_SDK_DIR;
4545
cp Cargo.toml Cargo.toml.backup
4646
cp Cargo.lock Cargo.lock.backup
47+
cp bindings/matrix-sdk-ffi/Cargo.toml bindings/matrix-sdk-ffi/Cargo.toml.backup
4748
trap "mv $RUST_SDK_DIR/Cargo.toml.backup $RUST_SDK_DIR/Cargo.toml; mv $RUST_SDK_DIR/Cargo.lock.backup $RUST_SDK_DIR/Cargo.lock" EXIT INT TERM
49+
trap "mv $RUST_SDK_DIR/bindings/matrix-sdk-ffi/Cargo.toml.backup $RUST_SDK_DIR/bindings/matrix-sdk-ffi/Cargo.toml" EXIT INT TERM
4850
sed -i.bak 's/uniffi =.*/uniffi = "0\.28\.3"/' Cargo.toml
51+
sed -i.bak 's/"wasm-unstable-single-threaded"//' bindings/matrix-sdk-ffi/Cargo.toml
4952
sed -i.bak 's^uniffi_bindgen =.*^uniffi_bindgen = { git = "https:\/\/github.com\/mozilla\/uniffi-rs", rev = "f7a0ba703b4c06fff8fffa98078f2e5d7588a695" }^' Cargo.toml
50-
sed -i.bak 's#matrix-sdk-crypto = {#matrix-sdk-crypto = {features = ["_disable-minimum-rotation-period-ms"],#' Cargo.toml
53+
sed -i.bak 's#matrix-sdk-crypto = {#matrix-sdk-crypto = {features = ["_disable-minimum-rotation-period-ms"],#' bindings/matrix-sdk-ffi/Cargo.toml
5154
sed -i.bak 's/\[Remote\]//' bindings/matrix-sdk-ffi/src/api.udl
5255
cargo build -p matrix-sdk-ffi --features 'native-tls,sentry'
5356
# generate the bindings

0 commit comments

Comments
 (0)