get_memory returns a reference but according to docs it shouldn't be #3399
Labels
📚 documentation
Do you like to read?
🥇 good first issue
Good for newcomers
🍋 Low-hanging Fruit
priority-low
Low priority issue
❓ question
I've a question!
Milestone
Summary
According to the migration docs (https://github.com/wasmerio/wasmer/blob/master/docs/migration_to_3.0.0.md#after) we can use get_memory to get an instance of Memory and set it in our env (MyEnv). But the return type of get_memory is &Memory not Memory. Because of that i need to set a lifetime parameter on the Env which is incompatible with
Function::new_typed_with_env
.Additional details
What i'm trying to do is use memory inside of imports and use WasmPtr to read a string from memory and write to memory
The text was updated successfully, but these errors were encountered: