Skip to main content

define_web_components

Macro define_web_components 

Source
macro_rules! define_web_components {
    ($x:expr) => { ... };
}
Expand description

Defining the web components needs an extern struct to reference the generated JavaSript glue. This is parameterized by an attribute macro which needs to be determined by the top-level compiled module - the JavaScript glue code emitted by wasm-bindgen-cli.