1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//#![feature(proc_macro_span)]
use proc_macro::{TokenStream};


mod derive_wasm_bridge;
use derive_wasm_bridge::*;

#[proc_macro_derive(ToWasm)]
pub fn derive_to_wasm(input: TokenStream) -> TokenStream {
    derive_to_wasm_impl(input)
}

#[proc_macro_derive(FromWasm)]
pub fn derive_de_wasm_msg(input: TokenStream) -> TokenStream {
    derive_from_wasm_impl(input)
}