Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update WASM bindings #1122

Merged
merged 4 commits into from
Oct 7, 2024
Merged

Update WASM bindings #1122

merged 4 commits into from
Oct 7, 2024

Conversation

rygine
Copy link
Collaborator

@rygine rygine commented Oct 7, 2024

Summary

This PR adds more WASM bindings to match our other bindings. Tests and CI workflows to follow.

@rygine rygine requested a review from a team as a code owner October 7, 2024 18:58
Copy link

graphite-app bot commented Oct 7, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

encryption_key: Option<Uint8Array>,
history_sync_url: Option<String>,
) -> Result<WasmClient, JsError> {
xmtp_mls::utils::wasm::init().await;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we shouldn't include the tracing setup in prod, instead we should come up with some system similar to the bindings_ffi to pass a logger from javascript/let the client sdk setup logging by calling the init fn themselves. Could be a good followup issue since it's not necessary yet

Copy link
Contributor

@insipx insipx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good! We should just remove wasm::init

xmtp_mls = { path = "../xmtp_mls", features = ["message-history"] }
xmtp_mls = { path = "../xmtp_mls", features = [
"message-history",
"test-utils",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should not enable this feature/remove the wasm::init() fn

@rygine rygine merged commit abdd3de into wasm-backend Oct 7, 2024
8 checks passed
@rygine rygine deleted the rygine/wasm-bindings-update branch October 7, 2024 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants