Closed vishalchandra closed 2 years ago
So the following works.
wasm~ wasmedge --env ENVVAR=VAR1 examples/helper/target/wasm32-wasi/release/helper.wasm
Hello, world!
The env vars are as follows.
ENVVAR: VAR1
Might be a good idea to take a look at options for the wasmedge cli including for dir etc.
Below is the code to use the wasi helper function. This is not able to read the env vars. The same rust code (excluding the wasi helper function and lines) is able to read the env vars and print them.
Following is the output on the terminal
Thank you for your help.