wasm_plugin icon indicating copy to clipboard operation
wasm_plugin copied to clipboard

Update to Wasmer 3.x

Open PieKing1215 opened this issue 1 year ago • 1 comments

I updated this to wasmer 3.x while I was trying to debug a panic I was getting.

The only differences in the public API are:

  • call_function and call_function_with_argument now both take &mut self (call_function_with_argument was &self before for some reason).
  • import_function_with_context and import_function both require the function to be Sync now

Otherwise the changes are mainly just passing Store references around more and updating some changed names.

PieKing1215 avatar May 31 '23 04:05 PieKing1215

This sounds great. I haven't thought about this code in a bit so I'm going to need some time to refresh before I feel comfortable merging but I'll try to take a closer look this weekend. Thanks.

alec-deason avatar May 31 '23 19:05 alec-deason