Skip to content

Commit

Permalink
Merge pull request #113 from matrix-org/kegan/clean-cargo
Browse files Browse the repository at this point in the history
Revert changes to Cargo files when rebuilding rust SDK
  • Loading branch information
kegsay committed Jul 9, 2024
2 parents 8a00917 + 31f6876 commit 3aabfa8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rebuild_rust_sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ fi
# replace uniffi version to one that works with uniffi-bindgen-go
echo 'building matrix-sdk-ffi...';
cd $RUST_SDK_DIR;
cp Cargo.toml Cargo.toml.backup
cp Cargo.lock Cargo.lock.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
sed -i.bak 's/uniffi =.*/uniffi = "0\.25\.3"/' Cargo.toml
sed -i.bak 's^uniffi_bindgen =.*^uniffi_bindgen = { git = "https:\/\/github.com\/mozilla\/uniffi-rs", rev = "0a03b713306d6ce3de033157fc2ce92a238c2e24" }^' Cargo.toml
sed -i.bak 's#matrix-sdk-crypto = {#matrix-sdk-crypto = {features = ["_disable-minimum-rotation-period-ms"],#' Cargo.toml
Expand Down

0 comments on commit 3aabfa8

Please sign in to comment.