-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Support for WebAssembly externref in non-web environment #103516
Copy link
Copy link
Open
Labels
A-codegenArea: Code generationArea: Code generationC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.O-wasmTarget: WASM (WebAssembly), http://webassembly.org/Target: WASM (WebAssembly), http://webassembly.org/T-langRelevant to the language teamRelevant to the language team
Metadata
Metadata
Assignees
Labels
A-codegenArea: Code generationArea: Code generationC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.O-wasmTarget: WASM (WebAssembly), http://webassembly.org/Target: WASM (WebAssembly), http://webassembly.org/T-langRelevant to the language teamRelevant to the language team
Type
Fields
Give feedbackNo fields configured for issues without a type.
My goal is to compile a function written in Rust to WebAssembly which has as an input/output type
externref.Then I want to call this function as an export in Wasmtime. So, this function will receive an
externrefas an input and also return one.The WebAssembly Code in the wat format should look similar to this:
I have seen that there exists
wasm-bindgenfor browser hosts.Is there a way to produce
externrefas an input and output for exports of functions written in Rust that can be called in non-web environments like Wasmtime?