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 string_types() -> [String; 4] {
    [
        quote! { String }.to_string(),
        quote! { Option<String> }.to_string(),
        quote! { &str }.to_string(),
        quote! { char }.to_string()
    ]
}