Aedius, 1 month ago @ntha @janriemer i didn't test it, but it seems, it just need to be declared on the Rust side : https://rustwasm.github.io/docs/book/reference/js-ffi.html fn main() { // import a JS function called foo from the module mod #[link(wasm_import_module = "mod")] extern { fn foo(); }
@ntha @janriemer
i didn't test it, but it seems, it just need to be declared on the Rust side :
https://rustwasm.github.io/docs/book/reference/js-ffi.html
fn main() { // import a JS function called foo from the module mod #[link(wasm_import_module = "mod")] extern { fn foo(); }
foo
mod