You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello all!
This is my first time touching Rust code and I feel a little bit lost.
I am more familiar with C so I wanted to give the c-api a try.
I found these tutorials: https://docs.wasmtime.dev/examples-c-gcd.html
However, I ran into an error. I did not have wasmtime_wat2wasm defined.
I stumbled upon WASMTIME_FEATURE_LIST.
I managed to fix this by adding wat = ["dep:wat", "wasmtime/wat"] to crates/c-api/Cargo.toml, adding "WAT", to crates/c-api/build.rs, and compiling with cargo build --release --package wasmtime-c-api --features wasmtime-c-api/wat.
What is the expected action if I want to enable/disable features? Do I need to modify build.rs, Cargo.toml and features.cmake to match? Or is it supposed to be matching automatically and I am just so new to cargo that I cant figure it out?
The text was updated successfully, but these errors were encountered:
Hello all!
This is my first time touching Rust code and I feel a little bit lost.
I am more familiar with C so I wanted to give the c-api a try.
I found these tutorials: https://docs.wasmtime.dev/examples-c-gcd.html
However, I ran into an error. I did not have
wasmtime_wat2wasm
defined.I stumbled upon
WASMTIME_FEATURE_LIST
.I managed to fix this by adding
wat = ["dep:wat", "wasmtime/wat"]
tocrates/c-api/Cargo.toml
, adding"WAT",
tocrates/c-api/build.rs
, and compiling withcargo build --release --package wasmtime-c-api --features wasmtime-c-api/wat
.What is the expected action if I want to enable/disable features? Do I need to modify
build.rs
,Cargo.toml
andfeatures.cmake
to match? Or is it supposed to be matching automatically and I am just so new to cargo that I cant figure it out?The text was updated successfully, but these errors were encountered: