Aedius,
@Aedius@lavraievie.social avatar

@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(); }

  • All
  • Subscribed
  • Moderated
  • Favorites
  • rust
  • slotface
  • kavyap
  • thenastyranch
  • everett
  • osvaldo12
  • rosin
  • mdbf
  • DreamBathrooms
  • khanakhh
  • magazineikmin
  • InstantRegret
  • Youngstown
  • Durango
  • Leos
  • normalnudes
  • ngwrru68w68
  • modclub
  • anitta
  • tacticalgear
  • ethstaker
  • GTA5RPClips
  • cubers
  • megavids
  • provamag3
  • cisconetworking
  • tester
  • JUstTest
  • lostlight
  • All magazines