ShuP1 opened PR #5179 from c-api-stdio-buffer
to main
:
As discussed in issue #4372 and respective issues about python and go bindings.
Can replace
wasi_config_inherit_stdin
in examples/wasi/main.c:78wasi_config_t *wasi_config = wasi_config_new(); assert(wasi_config); wasm_byte_vec_t binary; wasm_name_new_from_string_nt(&binary, "sent to stdin"); wasi_config_set_stdin_bytes(wasi_config, &binary); error = wasmtime_context_set_wasi(context, wasi_config);
(cc @alexcrichton)
alexcrichton submitted PR review.
alexcrichton submitted PR review.
alexcrichton created PR review comment:
Since this takes owneship of the argument here I think it might be good to drop the
const
qualifier since it's actually mutated.
ShuP1 updated PR #5179 from c-api-stdio-buffer
to main
.
alexcrichton merged PR #5179.
Last updated: Nov 22 2024 at 16:03 UTC