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
This pretty much ties in to #2 where 0.2.0 features are getting used more and more often. Mocking out the random_get hostcall does seem to work, but in my trial and error I just always return the same "random" value, so that's not really a usable implementation.
The text was updated successfully, but these errors were encountered:
While trying out the test-framework I've found that WASM modules compiled with Rust 1.76 assume random_get exists:
It appears to try to manipulate a hashmap which now assumes
!std::sys::wasi::hashmap_random_keys
is usable inwasm32-wasi
targets.Compiling with an older rust version (i.e. 1.67.0) appears to run into a different issue (
environ_sizes_get
in my case), but looking at https://github.com/rust-lang/rust/blob/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/sys/wasi/mod.rs#L185 it's going to try to make this hostcall no matter what we do.This pretty much ties in to #2 where 0.2.0 features are getting used more and more often. Mocking out the random_get hostcall does seem to work, but in my trial and error I just always return the same "random" value, so that's not really a usable implementation.
The text was updated successfully, but these errors were encountered: