bindgen: remove extra trailing space in check for --rust-edition flags (#3799)

The arguments would be passed as either `--rust-edition=2024` or
`--rust-edition`, `2024`, but either way the resulting entry from the
list comprehension on the right hand of the `not in` operator will
contain `"--rust-edition"` without the trailing space. This allows users
of the bindgen rules to specify their own explicit edition.

Tested:
  Works in our private repo, and didn't without this patch.

Co-authored-by: Krasimir Georgiev <krasimir@google.com>
1 file changed
tree: ec1f2f183cbc4caff6c96e207e93b28219e1fba4
  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. .bazelversion
  18. .clang-format
  19. .clippy.toml
  20. .envrc
  21. .gitattributes
  22. .gitignore
  23. .pre-commit-config.yaml
  24. .prettierrc.toml
  25. .rustfmt.toml
  26. .typos.toml
  27. ARCHITECTURE.md
  28. AUTHORS
  29. BUILD.bazel
  30. CODEOWNERS
  31. COMPATIBILITY.md
  32. CONTRIBUTING.md
  33. CONTRIBUTORS
  34. LICENSE.txt
  35. MODULE.bazel
  36. README.md
  37. version.bzl
  38. WORKSPACE.bazel
  39. WORKSPACE.bzlmod
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.