We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The c-api does not export the function wasm_importtype_copy even tough it is defined in the wasm.h header file.
wasm_importtype_copy
wasm.h
echo "`wasmer -V` | `rustc -V` | `uname -m`" # wasmer 3.0.0-rc.2 | rustc 1.61.0 (fe5b13d68 2022-05-18) | x86_64
make build-capi
nm target/release/libwasmer.so | grep wasm_importtype_copy
The function should be implemented as per the wasm.h header.
The function is not implemented.
I suspect that adding the implementation can be fixed by adding this simple line:
From 49703d0d0db0a100c810660316560f05e165415d Mon Sep 17 00:00:00 2001 From: Paul <[email protected]> Date: Thu, 17 Nov 2022 23:02:45 +0100 Subject: [PATCH] implement wasm_importtype_copy --- lib/c-api/src/wasm_c_api/types/import.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/c-api/src/wasm_c_api/types/import.rs b/lib/c-api/src/wasm_c_api/types/import.rs index dc2e891d7..8be6b99c1 100644 --- a/lib/c-api/src/wasm_c_api/types/import.rs +++ b/lib/c-api/src/wasm_c_api/types/import.rs @@ -11,6 +11,7 @@ pub struct wasm_importtype_t { } wasm_declare_boxed_vec!(importtype); +wasm_impl_copy!(importtype); #[no_mangle] pub extern "C" fn wasm_importtype_new( -- 2.38.1
The text was updated successfully, but these errors were encountered:
Thank you for finding this bug, it's probably just a missing export on the API. We will fix this in the next version.
Sorry, something went wrong.
ef8d2f6
fschutt
Successfully merging a pull request may close this issue.
Describe the bug
The c-api does not export the function
wasm_importtype_copy
even tough it is defined in thewasm.h
header file.Steps to reproduce
make build-capi
nm target/release/libwasmer.so | grep wasm_importtype_copy
which will failExpected behavior
The function should be implemented as per the
wasm.h
header.Actual behavior
The function is not implemented.
Additional context
I suspect that adding the implementation can be fixed by adding this simple line:
The text was updated successfully, but these errors were encountered: