Make libclang attr as optional in the rust_bindgen_toolchain (#3788)

The `libclang` attr is currently used to set env variables for the
underlying `clang-sys` crate to dynamically link libclang. In build
systems that use static linking, these are redundant. Making libclang
attr optional simplifies the toolchain config for static linking.

---------

Co-authored-by: Krasimir Georgiev <krasimir@google.com>
1 file changed
tree: 5cc67075f1bddc34f591e3ca3761f45179ede7fb
  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.

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.