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

web-sys omits DataView members when generating code from IDLs #2312

Closed
qdot opened this issue Sep 19, 2020 · 0 comments
Closed

web-sys omits DataView members when generating code from IDLs #2312

qdot opened this issue Sep 19, 2020 · 0 comments
Labels

Comments

@qdot
Copy link
Contributor

qdot commented Sep 19, 2020

Describe the Bug

With the WebBluetooth IDL landed into unstable, web-sys is now generating WebBluetooth rust accessible code. However, some members from the spec are missing since it seems to be the only spec that uses DataView as an IDL type.

Steps to Reproduce

  1. Generate web-sys features using unstable config
  2. Check generated BluetoothRemoteGATTCharacteristic code

Expected Behavior

The value member of BluetoothRemoteGATTCharacteristic is generated as part of the file

Actual Behavior

value does not exist as a member of the generated rust code.

Additional Context

I'll see if I can handle this, since it's in the IDL I submitted and that seems to be the only IDL currently in the system that does this.

@qdot qdot added the bug label Sep 19, 2020
qdot pushed a commit to qdot/wasm-bindgen that referenced this issue Sep 20, 2020
Some WebIDL specs (WebBluetooth, WebUSB, etc) use DataView as an
attribute type. These attributes should map to a js_sys::DataView type.

Fixes rustwasm#2312
qdot added a commit to qdot/wasm-bindgen that referenced this issue Sep 20, 2020
Some WebIDL specs (WebBluetooth, WebUSB, etc) use DataView as an
attribute type. These attributes should map to a js_sys::DataView type.

Fixes rustwasm#2312
qdot added a commit to qdot/wasm-bindgen that referenced this issue Sep 20, 2020
Some WebIDL specs (WebBluetooth, WebUSB, etc) use DataView as an
attribute type. These attributes should map to a js_sys::DataView type.

Fixes rustwasm#2312
qdot added a commit to qdot/wasm-bindgen that referenced this issue Sep 20, 2020
Some WebIDL specs (WebBluetooth, WebUSB, etc) use DataView as an
attribute type. These attributes should map to a js_sys::DataView type.

Fixes rustwasm#2312
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

1 participant