mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
Add wasi_ prefix to wasm files
This commit is contained in:
parent
2286c19c20
commit
21b7c48043
@ -11221,8 +11221,8 @@ pub fn main() !void {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
{#code_end#}
|
{#code_end#}
|
||||||
{#shell_samp#}$ wasmtime args.wasm 123 hello
|
{#shell_samp#}$ wasmtime wasi_args.wasm 123 hello
|
||||||
0: args.wasm
|
0: wasi_args.wasm
|
||||||
1: 123
|
1: 123
|
||||||
2: hello{#end_shell_samp#}
|
2: hello{#end_shell_samp#}
|
||||||
<p>A more interesting example would be extracting the list of preopens from the runtime.
|
<p>A more interesting example would be extracting the list of preopens from the runtime.
|
||||||
@ -11247,7 +11247,7 @@ pub fn main() !void {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
{#code_end#}
|
{#code_end#}
|
||||||
{#shell_samp#}$ wasmtime --dir=. preopens.wasm
|
{#shell_samp#}$ wasmtime --dir=. wasi_preopens.wasm
|
||||||
0: stdin
|
0: stdin
|
||||||
1: stdout
|
1: stdout
|
||||||
2: stderr
|
2: stderr
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user