matrix-rust-sdk/bindings/matrix-sdk-ffi
Thomas 95a471b0d2
ffi: Expose discovered sliding sync proxy URL (#3266)
Closes #3265.

There is currently no way to get the URL of a homeserver's sliding sync proxy before logging in on the homeserver.

I suggest exposing the URL via the `HomeserverLoginDetail` struct after configuring the homeserver (through `configure_homeserver`).

Since the homeserver may not declare a corresponding sliding sync proxy, this value is an `Optional`. It is used later in `configure_homeserver` to check if a sliding sync proxy exists and throws an error otherwise. Previously, this check was done against the client's `discovered_sliding_sync_proxy` function.

- [ ] Public API changes documented in changelogs (optional)

Signed-off-by: Thomas Völkl <thomas@vollkorntomate.de>
Signed-off-by: Benjamin Bouvier <public@benj.me>
Co-authored-by: Benjamin Bouvier <public@benj.me>
2024-03-22 17:21:24 +00:00
..
src ffi: Expose discovered sliding sync proxy URL (#3266) 2024-03-22 17:21:24 +00:00
Cargo.toml
README.md
build.rs
uniffi.toml

README.md

FFI bindings for the rust matrix SDK

This uses uniffi to build the matrix bindings for native support and wasm-bindgen for web-browser assembly support. Please refer to the specific section to figure out how to build and use the bindings for your platform.

OpenTelemetry support

The bindings have support for OpenTelemetry, allowing for the upload of traces to any OpenTelemetry collector. This support is provided through the opentelemetry crate, which requires the [protoc] binary to be installed during the build process.

Platforms

Swift/iOS sync

Swift/iOS async

TBD