From 21b7c4804352c892ba4bfd6967ca73a5db0df81b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Fro=C5=82ow?= Date: Mon, 15 May 2023 16:37:56 +0200 Subject: [PATCH] Add wasi_ prefix to wasm files --- doc/langref.html.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/langref.html.in b/doc/langref.html.in index a57a837089..94aa7d6fc7 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -11221,8 +11221,8 @@ pub fn main() !void { } } {#code_end#} - {#shell_samp#}$ wasmtime args.wasm 123 hello -0: args.wasm + {#shell_samp#}$ wasmtime wasi_args.wasm 123 hello +0: wasi_args.wasm 1: 123 2: hello{#end_shell_samp#}

A more interesting example would be extracting the list of preopens from the runtime. @@ -11247,7 +11247,7 @@ pub fn main() !void { } } {#code_end#} - {#shell_samp#}$ wasmtime --dir=. preopens.wasm + {#shell_samp#}$ wasmtime --dir=. wasi_preopens.wasm 0: stdin 1: stdout 2: stderr