mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-18 23:41:24 +00:00
Fix importing static
values of non-JS types
This hasn't ever actually worked in `wasm-bindgen` but there's been enough refactorings since the initial implementation that it's actually quite trivial to implement now! Closes #1777
This commit is contained in:
@ -1162,6 +1162,14 @@ impl ToTokens for ast::ImportStatic {
|
||||
};
|
||||
})
|
||||
.to_tokens(into);
|
||||
|
||||
Descriptor(
|
||||
&shim_name,
|
||||
quote! {
|
||||
<#ty as WasmDescribe>::describe();
|
||||
},
|
||||
)
|
||||
.to_tokens(into);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user