wasm-interfacegen-macro 0.1.0

Definition of the JsInterface procedural derive macro, an internal dependency of wasm-interfacegen
Documentation
1
2
3
4
5
6
7
8
9
10
use quote::quote;

pub fn any_types() -> [String; 4] {
    [
        quote! { wasm_bindgen::prelude::JsValue }.to_string(),
        quote! { &wasm_bindgen::prelude::JsValue }.to_string(),
        quote! { Option<wasm_bindgen::prelude::JsValue> }.to_string(),
        quote! { Option<&wasm_bindgen::prelude::JsValue> }.to_string(),
    ]
}