diff --git a/.bazelci/presubmit.yml b/.bazelci/presubmit.yml index dc58b58530..1a0c597892 100644 --- a/.bazelci/presubmit.yml +++ b/.bazelci/presubmit.yml @@ -40,6 +40,10 @@ tasks: - "-@examples//hello_lib:hello_lib_doc_test" - "-//tools/runfiles:runfiles_doc_test" - "-@examples//ffi/rust_calling_c/simple/..." + # See https://github.com/bazelbuild/bazel/issues/9987 + - "-@examples//ffi/rust_calling_c:matrix_dylib_test" + # rust-lld isn't available on RBE + - "-@examples//hello_world_wasm:hello_world_wasm_test" examples: name: Examples platform: ubuntu1804 diff --git a/AUTHORS b/AUTHORS index 84e6e9c71b..9da09a6e37 100644 --- a/AUTHORS +++ b/AUTHORS @@ -7,6 +7,7 @@ # The email address is not required for organizations. Google Inc. +Spotify AB Damien Martin-Guillerez David Chen Florian Weikert diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 6351d6632d..491738bfed 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -19,3 +19,4 @@ Kristina Chodorow Philipp Wollermann Ulf Adams Justine Alexandra Roberts Tunney +John Edmonds diff --git a/README.md b/README.md index 406b985f60..cf42069c4b 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,15 @@ This repository provides rules for building [Rust][rust] projects with [Bazel](h +#### WebAssembly + +To build a `rust_binary` for wasm32-unknown-unknown add the `--platforms=//rust/platform:wasm` flag. + + bazel build @examples//hello_world_wasm --platforms=//rust/platform:wasm + +`rust_wasm_bindgen` will automatically transition to the wasm platform and can be used when +building wasm code for the host target. + ### Protobuf