Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion install_uniffi_bindgen_go.sh
Original file line number Diff line number Diff line change
@@ -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
3 changes: 1 addition & 2 deletions rebuild_rust_sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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...";
Expand Down
Loading