Skip to content

WASI-USB Phase 2 Proposal#3

Open
siwieme wants to merge 4 commits intoWebAssembly:mainfrom
siwieme:main
Open

WASI-USB Phase 2 Proposal#3
siwieme wants to merge 4 commits intoWebAssembly:mainfrom
siwieme:main

Conversation

@siwieme
Copy link

@siwieme siwieme commented Mar 2, 2026

Proposal to bring WASI-USB into Phase 2.

@Michielvk Michielvk mentioned this pull request Mar 3, 2026
4 tasks
README.md Outdated

### Portability Criteria

The API is designed to be portable across different platforms and environments, as it is based on the USB standard and Operating System APIs. The reference implementation can be used as a starting point for porting the API to different platforms.
Copy link
Member

Choose a reason for hiding this comment

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

@ricochet Sorry for asking this after the vote: 🤭 Aside from multiple platforms, should this also require "at least two independent implementations"? To prevent accidentally baking in any libusb-specific behavior

Copy link
Collaborator

Choose a reason for hiding this comment

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

^ yes great call.

Choose a reason for hiding this comment

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

Yes, good catch! Thank you. We have resolved it in 624294d. Feel free to let us know if you have any other remarks to improve the proposal.

Copy link
Member

Choose a reason for hiding this comment

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

No other comments from me 👍

Comment on lines +28 to +37
world cguest {
import transfers;
import errors;
import device;
import descriptors;
import configuration;
import usb-hotplug;

export wasi:cli/run@0.2.5;
} No newline at end of file

Choose a reason for hiding this comment

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

Implementation specific worlds should not be part of the standard. Only a minimal world with interface imports should be included.

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.

4 participants