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

Add WASM/WebBluetooth Support #13

Open
qdot opened this issue Jan 11, 2020 · 6 comments
Open

Add WASM/WebBluetooth Support #13

qdot opened this issue Jan 11, 2020 · 6 comments
Labels
enhancement New feature or request

Comments

@qdot
Copy link
Contributor

qdot commented Jan 11, 2020

Not particularly sure how it'll be useful, but its the future, so why not.

Pretty much all of the API redesigns will need to happen before this I'm guessing, as we'll need to figure out how futures will convert and what not. Lots to think about.

@qdot qdot added the enhancement New feature or request label Jan 11, 2020
@qdot
Copy link
Contributor Author

qdot commented Jun 25, 2020

This will basically be a wrapper around wasm_bindings WebSys, which still needs a gecko style WebIDL impl for WebBluetooth written for it.

Guess who's probably doing that. :|

@qdot
Copy link
Contributor Author

qdot commented Sep 20, 2020

WebBluetooth IDL support has landed into web-sys, and a WASM implementation is available at https://github.com/buttplugio/buttplug-rs-ffi in the WASM module. This could probably be ported over here at any time (though some web-sys IDL generation fixes are still needed)

@qdot
Copy link
Contributor Author

qdot commented Sep 20, 2020

BTW, if someone sees this and wants to try to do it, you will most likely want to talk to me first. Getting the lifetimes right for the WASM/JS execution model is tricky.

@arlyxiao
Copy link

How's this going?
Is this still in progress?

@SyedKaz00
Copy link

^^ Any Progress?

@ActuallyHappening
Copy link

Having WASM support would be awesome!

Since it is not currently supported, I have resorted to using this crate and the web-sys using an even more abstracted API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants