[EXAMPLE] add cross compilation example
21 files changed
tree: ca89597caa84fbd011d77e7bca882dc290e7bceb
  1. .bcr/
  2. .devcontainer/
  3. .github/
  4. docs/
  5. e2e/
  6. examples/
  7. probe_rs/
  8. .bazelignore
  9. .bazelrc
  10. .bazelversion
  11. .gitattributes
  12. .gitignore
  13. .pre-commit-config.yaml
  14. .prettierignore
  15. BUILD.bazel
  16. CONTRIBUTING.md
  17. LICENSE
  18. MODULE.bazel
  19. MODULE.bazel.lock
  20. README.md
  21. renovate.json
  22. WORKSPACE.bazel
README.md

Bazel rules for rules_probe_rs

Installation

From the release you wish to use: https://github.com/hexdae/rules_probe_rs/releases copy the WORKSPACE snippet into your WORKSPACE file.

To use a commit rather than a release, you can point at any SHA of the repo.

For example to use commit abc123:

  1. Replace url = "https://github.com/hexdae/rules_probe_rs/releases/download/v0.1.0/rules_probe_rs-v0.1.0.tar.gz" with a GitHub-provided source archive like url = "https://github.com/hexdae/rules_probe_rs/archive/abc123.tar.gz"
  2. Replace strip_prefix = "rules_probe_rs-0.1.0" with strip_prefix = "rules_probe_rs-abc123"
  3. Update the sha256. The easiest way to do this is to comment out the line, then Bazel will print a message with the correct value. Note that GitHub source archives don't have a strong guarantee on the sha256 stability, see https://github.blog/2023-02-21-update-on-the-future-stability-of-source-code-archives-and-hashes/