From dde063bb499f88c21c716d31782041b3d7bc8652 Mon Sep 17 00:00:00 2001 From: Johannes Marbach Date: Mon, 16 Feb 2026 13:25:05 +0100 Subject: [PATCH] Try out https://github.com/tnull/uniffi-bindgen-go/tree/2026-01-upgrade-to-0.29 Signed-off-by: Johannes Marbach --- install_uniffi_bindgen_go.sh | 2 +- rebuild_rust_sdk.sh | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/install_uniffi_bindgen_go.sh b/install_uniffi_bindgen_go.sh index 4d2bc4e..0f2fd9f 100755 --- a/install_uniffi_bindgen_go.sh +++ b/install_uniffi_bindgen_go.sh @@ -1,4 +1,4 @@ #!/bin/bash -e set -o pipefail -cargo install uniffi-bindgen-go --tag v0.4.0+v0.28.3 --git https://github.com/kegsay/uniffi-bindgen-go +cargo install uniffi-bindgen-go --rev c1374e9d303826b941c8d91ba0c3008fc2d34714 --git https://github.com/tnull/uniffi-bindgen-go diff --git a/rebuild_rust_sdk.sh b/rebuild_rust_sdk.sh index 1279516..22c44d5 100755 --- a/rebuild_rust_sdk.sh +++ b/rebuild_rust_sdk.sh @@ -52,11 +52,10 @@ 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 "restore_backups" EXIT INT TERM -sed -i.bak 's/uniffi =.*/uniffi = "0\.28\.3"/' Cargo.toml +sed -i.bak 's/uniffi =.*/uniffi = "0\.29\.5"/' 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 cargo build -p matrix-sdk-ffi --features 'native-tls,sentry' # generate the bindings echo "generating bindings to $COMPLEMENT_DIR/internal/api/rust...";