Revert #1564 (#1663)

* Add example workspace cross-compiling with zig

We've run into a number of issues, both in rustc and in cargo build
scripts, where we're not properly propagating cc_toolchain information
to compiles and particularly link actions. These have often been hard to
test because we don't have an example set-up with a non-default C++
toolchain.

By wiring up a zig cross-compiling toolchain, we have a concrete example
we can work with. It's also an interesting potential example for folks
who want to set something similar up.

* Revert #1564

It looks like the reported issue is probably related to the ios
toolchain in use, rather than our general toolchain flag propagation.

* Add platform_mappings and --cpu flag to ios_build example
10 files changed
tree: 4fd806b543ffc6016a94273b4b918453f5517db0
  1. .bazelci/
  2. .github/
  3. bindgen/
  4. cargo/
  5. crate_universe/
  6. docs/
  7. examples/
  8. proto/
  9. rust/
  10. test/
  11. tools/
  12. util/
  13. wasm_bindgen/
  14. .bazelignore
  15. .bazelrc
  16. .clang-format
  17. .gitignore
  18. ARCHITECTURE.md
  19. AUTHORS
  20. BUILD.bazel
  21. CODEOWNERS
  22. COMPATIBILITY.md
  23. CONTRIBUTING.md
  24. CONTRIBUTORS
  25. LICENSE.txt
  26. README.md
  27. version.bzl
  28. WORKSPACE.bazel
README.md

Rust Rules

  • Postsubmit Build status

Overview

This repository provides rules for building Rust projects with Bazel.

Community

General discussions and announcements take place in the GitHub Discussions, but there are additional places where community members gather to discuss rules_rust.

Documentation

Please refer to the full documentation.