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

WebAssembly + WebUSB support #23

Open
beriberikix opened this issue Aug 14, 2023 · 3 comments
Open

WebAssembly + WebUSB support #23

beriberikix opened this issue Aug 14, 2023 · 3 comments
Labels
question Further information is requested

Comments

@beriberikix
Copy link

Hello! I'm curious if you or anyone is considering porting this to WebAssembly so that it can be combined with WebUSB. I have a project idea where I transport USB/IP over WebSockets to share device from the browser to a web server.

@jiegec
Copy link
Owner

jiegec commented Aug 14, 2023

I believe the core protocol part can be built to WebAssembly, but the rusb/tokio parts may need some porting to allow custom transport.

@beriberikix
Copy link
Author

Ah, makes sense. There is a crate for webusb that uses rusb as a backend, but that probably doesn't help here much. https://docs.rs/webusb/latest/webusb/

@beriberikix
Copy link
Author

It's also worth noting that libusb, which is what rusb is based on, has an emscripten-based backend that might be useful for anyone else interested in this :)

@h7x4 h7x4 added the question Further information is requested label Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants