Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make try_memory public #5327

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Make try_memory public #5327

wants to merge 1 commit into from

Conversation

Outfluencer
Copy link

I found no way to access the memory of a rust wasm file compiled with cargo wasix build

i just locally made this public and it did work without any issues

this was the setup i was not able to access the memory

let mut store = Store::default();
let caps = Capabilities {
    insecure_allow_all: true,
    http_client: HttpClientCapabilityV1::new_allow_all(),
    threading: CapabilityThreadingV1::default(),
};
let mut builder = WasiEnvBuilder::new("Crust").fs(Box::new(fs::default_fs_backing()));
builder.set_capabilities(caps);
let module = Module::from_file(&store, path)?;

let (instance, wasi_env) = builder.instantiate(module, &mut store)?;

I found now way to access the memory of a rust wasm file compiled with cargo wasix build

i just locally made this public and it did work without any issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant