*how* is web_sys auto generating its bindings?

I believe the web_sys bindings are auto generated from IDL files. My question is:

  1. where is it pulling these IDL files from ?

  2. what rules / logic is it using for IDL parse tree -> web_sys crate Rust code ?


XY problem: I'm interested in goofing around / playing with IDL -> codegen.

Is this helpful to you? This is the crate wasm-bindgen uses for converting WebIDL files to wasm-bindgen compatible code.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.