MODULE.bazel 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. # Exceptions. See /LICENSE for license information.
  3. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. """Bazel modules."""
  5. module(name = "carbon")
  6. bazel_dep(name = "bazel_skylib", version = "1.5.0")
  7. bazel_dep(
  8. name = "abseil-cpp",
  9. version = "20230802.0",
  10. repo_name = "com_google_absl",
  11. )
  12. bazel_dep(
  13. name = "re2",
  14. version = "2023-11-01",
  15. repo_name = "com_googlesource_code_re2",
  16. )
  17. bazel_dep(
  18. name = "googletest",
  19. version = "1.14.0.bcr.1",
  20. repo_name = "com_google_googletest",
  21. )
  22. bazel_dep(
  23. name = "google_benchmark",
  24. version = "1.8.3",
  25. repo_name = "com_github_google_benchmark",
  26. )
  27. bazel_dep(name = "rules_bison", version = "0.2.2")
  28. bazel_dep(name = "rules_flex", version = "0.2.1")
  29. bazel_dep(name = "rules_m4", version = "0.2.3")
  30. bazel_dep(name = "rules_cc", version = "0.0.9")
  31. bazel_dep(name = "rules_proto", version = "6.0.0-rc1")
  32. bazel_dep(
  33. name = "protobuf",
  34. version = "21.7",
  35. repo_name = "com_google_protobuf",
  36. )
  37. ###############################################################################
  38. # Python
  39. ###############################################################################
  40. bazel_dep(name = "rules_python", version = "0.27.1")
  41. python = use_extension("@rules_python//python/extensions:python.bzl", "python")
  42. python.toolchain(
  43. python_version = "3.11",
  44. )
  45. use_repo(python, "python_versions")
  46. pip = use_extension(
  47. "@rules_python//python/extensions:pip.bzl",
  48. "pip",
  49. )
  50. # Create a central repo that knows about the pip dependencies.
  51. pip.parse(
  52. hub_name = "py_deps",
  53. python_version = "3.11",
  54. requirements_lock = "//github_tools:requirements.txt",
  55. )
  56. use_repo(pip, "py_deps")