examples: drop the examples whose coverage lives elsewhere (#4459)

This change deletes five example workspaces. Each was a Buildkite job of
its own and each is already exercised by a test that runs on at least as
many platforms:

- `override_target`: `crate_universe/tests/integration/override_target`
is the same BUILD file plus proc-macro and build-script overrides.
- `compile_opt`: the root "Opt Mode" jobs on Linux, macOS and Windows,
with `test/unit/lto` and `test/unit/opt_level` covering the flags.
- `all_crate_deps`: the `all_crate_deps()` macro is used throughout
`crate_universe/tests/integration`; the `gen_rust_project` and `rustfmt`
build tests point at root targets every root job builds.
- `all_deps_vendor`: the same remote-mode `crates_vendor` of `bzip2` as
`examples/sys/basic`, and `crate_universe/tests/integration/vendor`
covers both vendor modes.
- `proto`: `extensions/prost` runs its own four jobs, including a custom
`rust_prost_toolchain` with tonic in
`private/tests/transitive_dependencies`.

`per_platform_printer` has had no `MODULE.bazel` since 2021 and
`cross_compile_zig` has been commented out of CI since #2075, so neither
was built anywhere.
95 files changed
tree: f4dd88456a63adbfe3a300cd5e43079950046592
  1. .bazelci/
  2. .bcr/
  3. .github/
  4. cargo/
  5. crate_universe/
  6. docs/
  7. examples/
  8. extensions/
  9. ffi/
  10. nix/
  11. rust/
  12. test/
  13. tools/
  14. util/
  15. .bazelignore
  16. .bazelrc
  17. .clang-format
  18. .clippy.toml
  19. .envrc
  20. .gitattributes
  21. .gitignore
  22. .pre-commit-config.yaml
  23. .prettierrc.toml
  24. .rustfmt.toml
  25. .typos.toml
  26. ARCHITECTURE.md
  27. AUTHORS
  28. BUILD.bazel
  29. CODEOWNERS
  30. COMPATIBILITY.md
  31. CONTRIBUTING.md
  32. CONTRIBUTORS
  33. LICENSE.txt
  34. MODULE.bazel
  35. README.md
  36. version.bzl
  37. WORKSPACE.bazel
README.md

Rust Rules

  • Postsubmit Build status

Overview

This repository provides rules for building Rust projects with Bazel.

Starter repo

The fastest way to try this in an empty project is to click the green “Use this template” button on https://github.com/bazel-starters/rust.

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.