Was trying to figure out what imports were required by a wasm I'd just loaded & couldn't spot a suitable example. Have created one with help from the wasmtime guys - thank you.
Please consider adding this to wasm-c-api examples to help others wanting to accomplish the same thing.
Hi all,
Please consider adding this to wasm-c-api examples to help others wanting to accomplish the same thing.
Example output:
Initializing... Loading binary... Compiling module... Extracting imports... import 0 "create_native" func i32 -> i32 import 1 "release_native" func i32 -> i32 Shutting down...
Cheers, Steve. imports.c.txt