-
-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Describe the enhancement
uniffi-bindgen-react-native has recently added wasm support
https://github.com/jhugman/uniffi-bindgen-react-native/releases/tag/0.29.3-0
Use case
Why use uniffi-bindgen-react-native instead of wasm-bindgen?
uniffi-bindgen-react-native generates a wasm-bindgen crate, from uniffi annotations.
when you come to use your Rust crate in another context (say, from Python, or Kotlin, or React Native), then you can generate FFIs for those platforms, all with the same uniffi annotations.
Additional context
Now uniffi-bindgen-react-native supports WASM, the React Native no longer seems appropriate. In the near future, we'll change the name to uniffi-bindgen-javascript. Backwards compatibility will be ensured.
Above are reference from their repo
If this can be achieved, then maybe we no longer need to maintain separate nostr-sdk-js repo
I tried to add ubrn build web --and-generate into https://github.com/rust-nostr/nostr-sdk-react-native
But it does not work out of the box due to nostr-sdk-ffi does not yet support wasm target