Re-export wasm-bindgen
This commit is contained in:
parent
dcd02f5702
commit
348b03d4ea
|
@ -83,5 +83,8 @@ pub use weblog_proc_macro::*;
|
|||
#[cfg(feature = "web_sys")]
|
||||
pub use ::web_sys;
|
||||
|
||||
#[cfg(feature = "web_sys")]
|
||||
pub use ::wasm_bindgen;
|
||||
|
||||
#[cfg(feature = "std_web")]
|
||||
pub use self::console::std_web::*;
|
||||
|
|
|
@ -69,7 +69,7 @@ fn quote_arg(arg: &Expr, arg_mode: ArgMode) -> TokenStream2 {
|
|||
quote! { #arg }
|
||||
}
|
||||
ArgMode::IntoJsValue => {
|
||||
quote! { &::std::convert::Into::<::wasm_bindgen::JsValue>::into(#arg) }
|
||||
quote! { &::std::convert::Into::<::weblog::wasm_bindgen::JsValue>::into(#arg) }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue