File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash -e
22set -o pipefail
33
4- cargo install uniffi-bindgen-go --tag v0.5.0+v0.29.5 -- git https://github.com/NordSecurity/uniffi-bindgen-go
4+ cargo install uniffi-bindgen-go --git https://github.com/NordSecurity/uniffi-bindgen-go --tag v0.7.0+v0.31.0
Original file line number Diff line number Diff line change @@ -45,16 +45,14 @@ function restore_backups {
4545 done
4646}
4747
48- # replace uniffi version to one that works with uniffi-bindgen-go
4948echo ' building matrix-sdk-ffi...' ;
5049cd $RUST_SDK_DIR ;
5150cp Cargo.toml Cargo.toml.backup
5251cp Cargo.lock Cargo.lock.backup
5352cp bindings/matrix-sdk-ffi/Cargo.toml bindings/matrix-sdk-ffi/Cargo.toml.backup
5453trap " restore_backups" EXIT INT TERM
55- sed -i.bak ' s/uniffi =.*/uniffi = "0\.29\.5"/' Cargo.toml
5654sed -i.bak ' s/"wasm-unstable-single-threaded"//' bindings/matrix-sdk-ffi/Cargo.toml
57- sed -i.bak ' s^uniffi_bindgen =.*^uniffi_bindgen = { git = "https:\/\/github.com\/mozilla\/uniffi-rs", rev = "f7a0ba703b4c06fff8fffa98078f2e5d7588a695" }^ ' Cargo.toml
55+ # Enable a hidden feature to make tests run faster.
5856sed -i.bak ' s#matrix-sdk-crypto = {#matrix-sdk-crypto = {features = ["_disable-minimum-rotation-period-ms"],#' Cargo.toml
5957cargo build -p matrix-sdk-ffi --features ' rustls-tls,sentry'
6058# generate the bindings
You can’t perform that action at this time.
0 commit comments