Closed PiotrSikora closed 3 years ago
How would this be used? I assume this is for wasm code, to build code that runs in a browser? So the target platform would has the new :wasi
constraint present?
@katre WASI is specifically designed for non-browser use cases of WebAssembly, but yeah, this is for the platform constraints. Right now, we have to carry it in rules_rust (https://github.com/bazelbuild/rules_rust/pull/477) to differentiate between wasm32-unknown-unknown
and wasm32-wasi
targets. Note that WASI is becoming de-facto standard, and languages other than Rust are also compiling for this target (e.g. Emscripten with STANDALONE_WASM=1
).
Thanks for the clarification!
Are there any documentation about WASI (ideally non-rust-specific) which you could include in a comment with the new constraint?
Are there any documentation about WASI (ideally non-rust-specific) which you could include in a comment with the new constraint?
This is probably the best overview, but I'm not sure how persistent this link is going to be: https://github.com/bytecodealliance/wasmtime/blob/main/docs/WASI-overview.md
Do you want me to add it?
Yes please, I think that will help explain the purpose.
Done. Thanks!
Signed-off-by: Piotr Sikora piotrsikora@google.com