Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please implement the directly call funcref from guest table feature #2866

Closed
rsta79 opened this issue Apr 30, 2022 · 0 comments · Fixed by #2892
Closed

Please implement the directly call funcref from guest table feature #2866

rsta79 opened this issue Apr 30, 2022 · 0 comments · Fixed by #2892
Assignees
Labels
🎉 enhancement New feature! priority-medium Medium priority issue

Comments

@rsta79
Copy link

rsta79 commented Apr 30, 2022

Motivation

I'm building plugin system for my rust app using wasmer crate, and I need to call funcref from guest table in host directly without calling call_callback function from guest

Proposed solution

This feature is implemented in wasmtime crate (https://github.com/bytecodealliance/wasmtime)

Additional context

Note: error message when i try to call funcref from guest table directly

thread 'main' panicked at 'not implemented: Native function definitions can't be directly called from the host yet', MY_CARGO_PATH\wasmer-2.2.1\src\sys\externals\function.rs:540:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
@rsta79 rsta79 added the 🎉 enhancement New feature! label Apr 30, 2022
@rsta79 rsta79 changed the title Please implement the directly call from guest table feature Please implement the directly call funcref from guest table feature May 1, 2022
@epilys epilys added the priority-medium Medium priority issue label May 1, 2022
@bors bors bot closed this as completed in #2892 Jul 19, 2022
@bors bors bot closed this as completed in 06474c1 Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎉 enhancement New feature! priority-medium Medium priority issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants