Skip to content

Commit

Permalink
Move to kegan/poljar-recovery-complement-fork branch of rust sdk, so …
Browse files Browse the repository at this point in the history
…we can test key backups
  • Loading branch information
kegsay committed Nov 22, 2023
1 parent 999d63b commit 1e11907
Show file tree
Hide file tree
Showing 5 changed files with 1,613 additions and 41 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Build Rust FFI bindings
run: |
mkdir rust-sdk
(wget -O - "https://github.com/matrix-org/matrix-rust-sdk/archive/kegan/complement-test-fork.tar.gz" | tar -xz --strip-components=1 -C rust-sdk)
(wget -O - "https://github.com/matrix-org/matrix-rust-sdk/archive/kegan/poljar-recovery-complement-fork.tar.gz" | tar -xz --strip-components=1 -C rust-sdk)
(cd rust-sdk && cargo build -p matrix-sdk-ffi)
ls -alh rust-sdk/target/debug
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ Prerequisites:
This repo has bindings to the `matrix_sdk` crate in rust SDK, in order to mimic Element X.

In order to generate these bindings, follow these instructions:
- Check out https://github.com/matrix-org/matrix-rust-sdk/tree/kegan/complement-test-fork (TODO: go back to main when `_ffi_matrix_sdk_ffi_rust_future_continuation_callback_set` is defined)
- Check out https://github.com/matrix-org/matrix-rust-sdk/tree/kegan/poljar-recovery-complement-fork (TODO: go back to main when
main uses a versioned release e.g 0.25.2)
- Get the bindings generator:
```
git clone https://github.com/NordSecurity/uniffi-bindgen-go.git
Expand Down
2 changes: 1 addition & 1 deletion internal/api/rust.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func (c *RustClient) MustBackpaginate(t *testing.T, roomID string, count int) {
t.Helper()
r := c.findRoom(t, roomID)
must.NotEqual(t, r, nil, "unknown room")
must.NotError(t, "failed to backpaginate", r.PaginateBackwards(matrix_sdk_ffi.PaginationOptionsSingleRequest{
must.NotError(t, "failed to backpaginate", r.PaginateBackwards(matrix_sdk_ffi.PaginationOptionsSimpleRequest{
EventLimit: uint16(count),
}))
}
Expand Down
Loading

0 comments on commit 1e11907

Please sign in to comment.