Open
Description
This early proposal suggests the addition of USB support to WASI through an interface inspired by WebUSB (and the WebUSB equivalent in node.js).
The proposed USB interface for WASI should include methods for:
- Device Enumeration (discovering connected USB devices + retrieving device information, such as the vendor ID)
- Device Communication (connecting to an USB device, reading and writing data to devices)
- Event Handlers (e.g. when a device is connected, disconnected)
Additionally, it's probably interesting to consider adding user permission for accessing USB devices.
I'm currently experimenting with WebUSB and WASI and I'm working on a proof of concept.
@Wadu436 is also looking into this.
If you have any feedback, let me know!