Even though IC canisters run in a non-WASI environment, I am still quite succesfull in using the
wasi-sdk
in compiling C++ code to wasm that runs on the IC canisters. I found it to be the most complete environment so far.
This is interesting. Do you mean that you were able to deploy a wasm canister that was compiled from C++ to wasm-wasi
and successfully call some of its methods? If your method tries to call any part of the WASI API outside of logging, I believe your canister may trap.
This thread might be helpful.