tree: 6864024de1f294a0c3c54bc6083a606531fd3f2d [path history] [tgz]
  1. src/
  2. .bazelrc
  3. .gitignore
  4. BUILD.bazel
  5. hello_world_test.sh
  6. MODULE.bazel
  7. README.md
  8. WORKSPACE.bazel
  9. WORKSPACE.bzlmod
examples/bzlmod/cross_compile/README.md

bzlmod cross-compile example

This example shows how to use rules_rust through bzlmod to invoke Rust cross-compilation.

It should be possible to bazel build //:hello_world_aarch64 and bazel build //:hello_world_x86_64 regardless of your host platform (as long as it is supported by Bazel and rustc).