Skip to content

Document process for adding WebIDL / managing web-sys crate #2181

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

Open
ryankurte opened this issue Jun 2, 2020 · 2 comments
Open

Document process for adding WebIDL / managing web-sys crate #2181

ryankurte opened this issue Jun 2, 2020 · 2 comments
Labels

Comments

@ryankurte
Copy link

Hey there,

Looking at webusb support (#1694) and I've hit a dead end on how to add or manage webidl files, #1950 and the web-sys readme seem to suggest one can add webidl files and that the interface objects are generated from these, however, it's not clear from the wasm book or readme how to perform this generation step (and there don't seem to be any obvious build.rs or cargo / test scripts for this)?

It'd be neat to document this so it's easy for others to contribute idl files ^_^

Cheers,

ryan

@alexcrichton
Copy link
Contributor

We have some rudimentary documentation for this here, but it's likely dated. Would be great to bring it up to speed!

@Pauan
Copy link
Contributor

Pauan commented Jun 4, 2020

Here are the current directions. If you're adding stable APIs then it should go into web-sys/webidls/enabled, or if you're adding unstable APIs then it should go into web-sys/webidls/unstable.

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

No branches or pull requests

3 participants