From 4b4e3e9c2785acd676cbe773976021a2f425ccaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Wed, 12 Nov 2025 15:33:09 +0100 Subject: [PATCH] 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. --- rebuild_rust_sdk.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rebuild_rust_sdk.sh b/rebuild_rust_sdk.sh index d1d07be..8db3717 100755 --- a/rebuild_rust_sdk.sh +++ b/rebuild_rust_sdk.sh @@ -44,8 +44,11 @@ echo 'building matrix-sdk-ffi...'; cd $RUST_SDK_DIR; cp Cargo.toml Cargo.toml.backup cp Cargo.lock Cargo.lock.backup +cp bindings/matrix-sdk-ffi/Cargo.toml bindings/matrix-sdk-ffi/Cargo.toml.backup 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 +trap "mv $RUST_SDK_DIR/bindings/matrix-sdk-ffi/Cargo.toml.backup $RUST_SDK_DIR/bindings/matrix-sdk-ffi/Cargo.toml" EXIT INT TERM sed -i.bak 's/uniffi =.*/uniffi = "0\.28\.3"/' Cargo.toml +sed -i.bak 's/"wasm-unstable-single-threaded"//' bindings/matrix-sdk-ffi/Cargo.toml sed -i.bak 's^uniffi_bindgen =.*^uniffi_bindgen = { git = "https:\/\/github.com\/mozilla\/uniffi-rs", rev = "f7a0ba703b4c06fff8fffa98078f2e5d7588a695" }^' Cargo.toml sed -i.bak 's#matrix-sdk-crypto = {#matrix-sdk-crypto = {features = ["_disable-minimum-rotation-period-ms"],#' Cargo.toml sed -i.bak 's/\[Remote\]//' bindings/matrix-sdk-ffi/src/api.udl