blob: f6a6ea94002e3bdf19d47db5b2091520d3c1ac7a [file]
"""Bazel build and test dependencies."""
# NOTE: When editing this file, also update the lockfile.
# bazel mod deps --lockfile_mode=update
module(
name = "bazel",
version = "10.0.0-prerelease",
repo_name = "io_bazel",
)
# =========================================
# Bazel module dependencies
# =========================================
bazel_dep(name = "abseil-cpp", version = "20250814.1")
bazel_dep(name = "bazel_features", version = "1.56.0")
bazel_dep(name = "bazel_skylib", version = "1.9.0")
bazel_dep(name = "blake3", version = "1.8.2.bcr.1")
bazel_dep(name = "googleapis-grpc-java", version = "1.0.0")
bazel_dep(name = "googleapis-java", version = "1.0.0")
bazel_dep(name = "googleapis")
bazel_dep(name = "googletest", version = "1.17.0.bcr.2", repo_name = "com_google_googletest")
bazel_dep(name = "grpc-java", version = "1.84.0")
bazel_dep(name = "grpc", repo_name = "com_github_grpc_grpc")
bazel_dep(name = "nlohmann_json", version = "3.12.0.bcr.2")
bazel_dep(name = "platforms", version = "1.1.0")
bazel_dep(name = "protobuf", repo_name = "com_google_protobuf")
bazel_dep(name = "re2", version = "2025-11-05.bcr.1")
bazel_dep(name = "rules_go", version = "0.62.0")
bazel_dep(name = "rules_graalvm")
bazel_dep(name = "rules_java", version = "9.9.0")
bazel_dep(name = "rules_jvm_external")
bazel_dep(name = "rules_license", version = "1.0.0")
bazel_dep(name = "rules_pkg", version = "1.1.0")
bazel_dep(name = "rules_python", version = "2.2.0")
bazel_dep(name = "rules_rs", version = "0.2.4")
bazel_dep(name = "rules_shell", version = "0.8.0")
bazel_dep(name = "rules_testing", version = "0.9.0")
bazel_dep(name = "stardoc", version = "0.8.0", repo_name = "io_bazel_skydoc")
bazel_dep(name = "with_cfg.bzl", version = "0.13.0")
bazel_dep(name = "zlib", version = "1.3.1.bcr.8")
bazel_dep(name = "zstd-jni", version = "1.5.6-9.bcr.2")
# Depend on apple_support first and then rules_cc so that the Xcode toolchain
# from apple_support wins over the generic Unix toolchain from rules_cc.
bazel_dep(name = "apple_support", version = "2.8.4")
bazel_dep(name = "rules_cc", version = "0.2.25")
# Hermetic LLVM toolchains used to cross-compile Bazel to all supported
# platforms from any host. Enabled by default in .bazelrc.
bazel_dep(name = "llvm", version = "0.8.27")
# The starlark rules in @rules_cc are hidden behind macros but docgen needs to
# load the rule class directly, so we need to expose the cc_compatibility_proxy
# repo for access to the symbols
cc_compatibility_proxy = use_extension("@rules_cc//cc:extensions.bzl", "compatibility_proxy")
use_repo(cc_compatibility_proxy, "cc_compatibility_proxy")
rules_rust = use_extension("@rules_rs//rs:rules_rust.bzl", "rules_rust")
use_repo(rules_rust, "rules_rust")
rust = use_extension("@rules_rs//rs/toolchains:module_extension.bzl", "toolchains")
# Keep the repo name short so generated sysroot `.rlib` paths stay under Windows's
# 260-character MAX_PATH limit (with output-dir overrides in .bazelrc).
rust.toolchain(
name = "rs",
edition = "2024",
version = "1.100.0",
)
use_repo(rust, "rs")
# TODO: wyv@ - add remoteapis to the BCR
bazel_dep(name = "remoteapis", version = "")
# Indirect module dependencies. Minimal versions are specified for compatibility; repo_name=None avoids accidental usages
bazel_dep(name = "buildozer", version = "10.1.0.bcr.1", repo_name = None) # Keep in sync with MODULE.tools
bazel_dep(name = "rules_swift", version = "3.3.0") # with repo_name = None, version drops to 2.4.0
bazel_dep(name = "rules_apple", version = "4.3.1", repo_name = None)
bazel_dep(name = "google_benchmark", version = "1.9.4", repo_name = None)
bazel_dep(name = "onetbb", version = "2022.2.0", repo_name = None)
bazel_dep(name = "protoc-gen-validate", version = "1.3.0", repo_name = None)
bazel_dep(name = "bazel_lib", version = "3.1.0", repo_name = None)
single_version_override(
module_name = "grpc",
patch_strip = 1,
patches = [
"//third_party:grpc-load-fixes.patch",
# TODO: Remove once grpc is updated to 1.78.0 or later.
"//third_party:grpc-cf-event-engine-layering.patch",
# TODO: Remove once grpc is updated to a version that includes
# https://github.com/grpc/grpc/pull/43482.
"//third_party:grpc-windows-layering.patch",
# TODO: Remove once grpc is updated to a version that includes
# https://github.com/grpc/grpc/pull/43484.
"//third_party:grpc-windows-env-stdlib.patch",
],
version = "1.76.0.bcr.1",
)
# Makes abseil link its Windows system libraries (dbghelp, bcrypt) with -l<lib>
# when it is built with MinGW clang.
# TODO: Remove once abseil is updated to a release that includes
# https://github.com/abseil/abseil-cpp/commit/583556e932.
single_version_override(
module_name = "abseil-cpp",
patch_strip = 1,
patches = ["//third_party:abseil-cpp-mingw-clang.patch"],
)
# bazel_dep overrides
single_version_override(
module_name = "rules_jvm_external",
patch_strip = 1,
patches = [
"//third_party:rules_jvm_external_6.8_bazel_vendor.patch",
# TODO: Remove this patch once a new version of rules_jvm_external is released and adopted by Bazel.
"//third_party:rules_jvm_external_6.8_exec_jar_tools.patch",
],
version = "6.8",
)
single_version_override(
module_name = "rules_python",
patch_strip = 1,
patches = [
"//third_party:rules_python_2.2.0_quoting.patch",
],
version = "2.2.0",
)
# TODO: Remove once upstream rules_rs defers host cargo errors on non-Tier-1
# host architectures during module extension evaluation.
single_version_override(
module_name = "rules_rs",
patch_strip = 1,
patches = [
"//third_party:rules_rs_0.2.4_host_cargo.patch",
],
version = "0.2.4",
)
# TODO(pcloudy): Remove once the next version of rules_graalvm is available.
single_version_override(
module_name = "rules_graalvm",
patch_strip = 1,
patches = [
"//third_party:rules_graalvm_fix.patch",
"//third_party:rules_graalvm_unicode.patch",
"//third_party:rules_graalvm_load_fix.patch",
"//third_party:rules_graalvm_bazel9_fixes.patch",
"//third_party:rules_graalvm_graalvm25.patch",
],
version = "0.11.1",
)
single_version_override(
module_name = "googleapis",
patch_strip = 1,
patches = ["//third_party:googleapis.patch"],
version = "0.0.0-20250604-de157ca3",
)
# 1. Expose @com_google_protobuf//java/core:lite_runtime_only
# due to https://github.com/protocolbuffers/protobuf/commit/079be27925955348d1b3cb30ffbfa33dcec5778c
# We need to package the lite runtime jar for Bazel's bootstrap build
# 2. Partially revert of https://github.com/protocolbuffers/protobuf/commit/7ec5e19c0743b80c5097434a05cc0e972e7b4e7a
# to support grpc
# 3. Pull in the removal of the memoizedIsInitialized field for messages with no
# required fields early. This reduces the memory usage of Bazel and avoids
# spread in memory usage between Bazel and Blaze.
single_version_override(
module_name = "protobuf",
patch_strip = 1,
patches = [
"//third_party:protobuf.patch",
# Fixes the build of a protobuf tool with MinGW clang.
# TODO: Remove once protobuf is updated to a version with this fix.
"//third_party:protobuf-mingw-setmode.patch",
],
version = "36.2",
)
local_path_override(
module_name = "remoteapis",
path = "./third_party/remoteapis",
)
# =========================================
# Java dependencies
# =========================================
maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
maven.install(
artifacts = [
# keep sorted
"args4j:args4j:2.37",
"com.beust:jcommander:1.82",
"com.dylibso.chicory:compiler:1.7.5",
"com.dylibso.chicory:log:1.7.5",
"com.dylibso.chicory:runtime:1.7.5",
"com.dylibso.chicory:wasm:1.7.5",
"com.github.ben-manes.caffeine:caffeine:3.1.8",
"com.github.stephenc.jcip:jcip-annotations:1.0-1",
"com.google.auth:google-auth-library-credentials:1.42.1",
"com.google.auth:google-auth-library-oauth2-http:1.42.1",
"com.google.auto:auto-common:1.2.2",
"com.google.auto.service:auto-service:1.0",
"com.google.auto.service:auto-service-annotations:1.0.1",
"com.google.auto.value:auto-value:1.11.0",
"com.google.auto.value:auto-value-annotations:1.11.0",
"com.google.code.findbugs:jsr305:3.0.2",
"com.google.code.gson:gson:2.14.0",
"com.google.code.java-allocation-instrumenter:java-allocation-instrumenter:3.3.4",
"com.google.errorprone:error_prone_annotation:2.50.0",
"com.google.errorprone:error_prone_annotations:2.50.0",
"com.google.errorprone:error_prone_check_api:2.50.0",
"com.google.errorprone:error_prone_core:2.50.0",
"com.google.flogger:flogger:0.5.1",
"com.google.flogger:flogger-system-backend:0.5.1",
"com.google.flogger:google-extensions:0.5.1",
"com.google.guava:failureaccess:1.0.3",
"com.google.guava:guava:33.7.2-jre",
"com.google.http-client:google-http-client:2.1.0",
"com.google.http-client:google-http-client-gson:2.1.0",
"com.google.turbine:turbine:1.18.0",
"com.guardsquare:proguard-base:7.8.2",
"com.ryanharter.auto.value:auto-value-gson-extension:1.3.1",
"com.ryanharter.auto.value:auto-value-gson-factory:1.3.1",
"com.ryanharter.auto.value:auto-value-gson-runtime:1.3.1",
"com.squareup:javapoet:1.12.0",
"commons-collections:commons-collections:3.2.2",
"commons-lang:commons-lang:2.6",
"io.github.eisop:dataflow-errorprone:3.49.3-eisop1",
"io.github.java-diff-utils:java-diff-utils:4.12",
"io.grpc:grpc-api:1.84.0",
"io.grpc:grpc-auth:1.84.0",
"io.grpc:grpc-context:1.84.0",
"io.grpc:grpc-core:1.84.0",
"io.grpc:grpc-inprocess:1.84.0",
"io.grpc:grpc-netty:1.84.0",
"io.grpc:grpc-protobuf:1.84.0",
"io.grpc:grpc-protobuf-lite:1.84.0",
"io.grpc:grpc-stub:1.84.0",
"io.netty:netty-buffer:4.2.19.Final",
"io.netty:netty-codec-base:4.2.19.Final",
"io.netty:netty-codec-compression:4.2.19.Final",
"io.netty:netty-codec-http:4.2.19.Final",
"io.netty:netty-codec-http2:4.2.19.Final",
"io.netty:netty-common:4.2.19.Final",
"io.netty:netty-codec-socks:4.2.19.Final",
"io.netty:netty-handler:4.2.19.Final",
"io.netty:netty-handler-proxy:4.2.19.Final",
"io.netty:netty-resolver:4.2.19.Final",
"io.netty:netty-resolver-dns:4.2.19.Final",
"io.netty:netty-transport:4.2.19.Final",
"io.netty:netty-transport-classes-epoll:4.2.19.Final",
"io.netty:netty-transport-classes-kqueue:4.2.19.Final",
"io.netty:netty-transport-native-epoll:jar:linux-aarch_64:4.2.19.Final",
"io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.2.19.Final",
"io.netty:netty-transport-native-kqueue:jar:osx-aarch_64:4.2.19.Final",
"io.netty:netty-transport-native-kqueue:jar:osx-x86_64:4.2.19.Final",
"io.netty:netty-transport-native-unix-common:4.2.19.Final",
"io.netty:netty-transport-native-unix-common:jar:linux-aarch_64:4.2.19.Final",
"io.netty:netty-transport-native-unix-common:jar:linux-x86_64:4.2.19.Final",
"io.netty:netty-transport-native-unix-common:jar:osx-aarch_64:4.2.19.Final",
"io.netty:netty-transport-native-unix-common:jar:osx-x86_64:4.2.19.Final",
"io.reactivex.rxjava3:rxjava:3.1.2",
"it.unimi.dsi:fastutil:7.2.1",
"javax.annotation:javax.annotation-api:1.3.2",
"org.apache.commons:commons-compress:1.26.1",
"org.apache.commons:commons-lang3:3.14.0",
"org.apache.velocity:velocity:1.7",
"org.brotli:dec:0.1.2",
"org.checkerframework:checker-qual:3.49.3",
"org.commonmark:commonmark:0.25.0",
"org.jspecify:jspecify:1.0.1",
"org.openjdk.jmh:jmh-core:1.37",
"org.openjdk.jmh:jmh-generator-annprocess:1.37",
"org.openjdk.jol:jol-core:0.17",
"org.roaringbitmap:RoaringBitmap:1.6.22",
"org.threeten:threeten-extra:1.8.0",
"org.tukaani:xz:1.9",
# The following jars are for testing.
# junit is not test only due to //src/java_tools/junitrunner/java/com/google/testing/junit/junit4:runner,
# and hamcrest is a dependency of junit.
"junit:junit:4.13.2",
"org.hamcrest:hamcrest-core:1.3",
],
excluded_artifacts = [
# org.apache.httpcomponents and org.eclipse.jgit:org.eclipse.jgit
# require java.security.jgss module to be embedded in the Bazel binary.
"org.apache.httpcomponents:httpclient",
"org.apache.httpcomponents:httpcore",
"org.eclipse.jgit:org.eclipse.jgit",
# Bazel uses the JDK's TLS implementation. grpc-java requests these.
"io.netty:netty-tcnative-boringssl-static",
"io.netty:netty-tcnative-classes",
# grpc-java requests these for optional features (xDS, ALTS/S2A, OkHttp,
# gRPC metrics) that Bazel does not use.
"com.google.re2j:re2j",
"com.google.s2a.proto.v2:s2a-proto",
"com.squareup.okhttp:okhttp",
"com.squareup.okio:okio",
"dev.cel:common",
"dev.cel:protobuf",
"dev.cel:runtime",
"io.opencensus:opencensus-contrib-grpc-metrics",
"org.jetbrains.kotlin:kotlin-stdlib-common",
],
fail_if_repin_required = True,
known_contributing_modules = [
"bazel",
"grpc-java",
"protobuf",
],
lock_file = "//:maven_install.json",
repositories = [
"https://repo1.maven.org/maven2",
],
strict_visibility = True,
)
maven.override(
coordinates = "com.google.api.grpc:proto-google-common-protos",
target = "@googleapis//google/rpc:rpc_java_proto",
)
maven.override(
coordinates = "io.github.eisop:checker-qual",
target = "@maven//:org_checkerframework_checker_qual",
)
# Pin to the version in //third_party/asm/... to avoid one-version violations.
[
maven.artifact(
artifact = artifact,
force_version = True,
group = "org.ow2.asm",
version = "9.10",
)
for artifact in [
"asm",
"asm-analysis",
"asm-commons",
"asm-tree",
"asm-util",
]
]
# Test only maven dependencies
[
maven.artifact(
testonly = True,
artifact = artifact,
group = group,
version = version,
)
for group, artifact, version in [coord.split(":") for coord in [
"com.google.guava:guava-testlib:33.2.1-jre",
"com.google.testing.compile:compile-testing:0.18",
"com.google.testparameterinjector:test-parameter-injector:1.16",
"com.google.truth:truth:1.4.2",
"com.google.truth.extensions:truth-liteproto-extension:1.4.0",
"com.google.truth.extensions:truth-proto-extension:1.4.0",
"org.mockito:mockito-core:5.20.0",
]]
]
use_repo(maven, "maven")
java_toolchains = use_extension("@rules_java//java:extensions.bzl", "toolchains")
use_repo(
java_toolchains,
"local_jdk",
# The following are required for visibility in //src:test_repos
"remote_java_tools",
"remote_java_tools_darwin_arm64",
"remote_java_tools_darwin_x86_64",
"remote_java_tools_linux",
"remote_java_tools_linux_aarch64",
"remote_java_tools_windows",
"remotejdk11_linux",
"remotejdk11_linux_aarch64",
"remotejdk11_linux_ppc64le",
"remotejdk11_linux_s390x",
"remotejdk11_macos",
"remotejdk11_macos_aarch64",
"remotejdk11_win",
"remotejdk11_win_arm64",
"remotejdk17_linux",
"remotejdk17_linux_s390x",
"remotejdk17_macos",
"remotejdk17_macos_aarch64",
"remotejdk17_win",
"remotejdk17_win_arm64",
"remotejdk21_linux",
"remotejdk21_linux_s390x",
"remotejdk21_macos",
"remotejdk21_macos_aarch64",
"remotejdk21_win",
"remotejdk25_linux",
"remotejdk25_linux_s390x",
"remotejdk25_macos",
"remotejdk25_macos_aarch64",
"remotejdk25_win",
)
# =========================================
# Python dependencies
# =========================================
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
ignore_root_user_error = True,
is_default = True,
python_version = "3.11",
)
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
pip.parse(
hub_name = "bazel_pip_dev_deps",
python_version = "3.11",
requirements_lock = "//:requirements.txt",
)
use_repo(pip, "bazel_pip_dev_deps")
# =========================================
# Other Bazel build dependencies
# =========================================
bazel_build_deps = use_extension("//:extensions.bzl", "bazel_build_deps")
use_repo(
bazel_build_deps,
"bazel_tools_repo_cache",
"bootstrap_repo_cache",
"debian_bin_deps",
"debian_cc_deps",
"debian_java_deps",
"debian_proto_deps",
"graalvm_ce_toolchains",
"graalvm_oracle",
"openjdk_linux_aarch64_vanilla",
"openjdk_linux_ppc64le_jmods",
"openjdk_linux_ppc64le_vanilla",
"openjdk_linux_riscv64_jmods",
"openjdk_linux_riscv64_vanilla",
"openjdk_linux_s390x_jmods",
"openjdk_linux_s390x_vanilla",
"openjdk_linux_vanilla",
"openjdk_macos_aarch64_vanilla",
"openjdk_macos_x86_64_vanilla",
"openjdk_win_arm64_jlink_tool",
"openjdk_win_arm64_vanilla",
"openjdk_win_vanilla",
"remotejdk27_linux_aarch64_toolchain_config_repo",
"remotejdk27_linux_ppc64le_toolchain_config_repo",
"remotejdk27_linux_riscv64_toolchain_config_repo",
"remotejdk27_linux_s390x_toolchain_config_repo",
"remotejdk27_linux_toolchain_config_repo",
"remotejdk27_macos_aarch64_toolchain_config_repo",
"remotejdk27_macos_toolchain_config_repo",
"remotejdk27_win_arm64_toolchain_config_repo",
"remotejdk27_win_toolchain_config_repo",
)
# `local_config_cc` is required only by
# `--extra_toolchains=@local_config_cc//:cc-toolchain-arm64_windows` from .bazelrc.
# `local_config_cc_toolchains` is required only to build the Turbine native
# image and bootstrap Rust toolchain with MSVC on Windows, see
# //src/java_tools/buildjar/java/com/google/devtools/build/java/turbine:native_image.bzl
# and //src/test/shell/bazel:bootstrap_rust_toolchain.bzl.
cc_configure = use_extension("@rules_cc//cc:extensions.bzl", "cc_configure_extension")
use_repo(cc_configure, "local_config_cc", "local_config_cc_toolchains")
# The hermetic macOS SDK used by the LLVM toolchains only ships a minimal set
# of frameworks by default. Bazel's native code additionally needs CoreServices
# (FSEvents) and IOKit (power management, thermal and disk space monitoring) as
# well as the frameworks their headers include.
osx = use_extension("@llvm//extensions:osx.bzl", "osx")
osx.frameworks(names = [
"CFNetwork",
"CoreFoundation",
"CoreGraphics",
"CoreServices",
"DiskArbitration",
"Foundation",
"IOKit",
"Kernel",
"OSLog",
"Security",
"SystemConfiguration",
])
http_file = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
# DO NOT UPDATE the jq versions, they are used to verify compatibility with old and new versions.
http_file(
name = "jq_linux_amd64",
executable = True,
integrity = "sha256-xrOn19PntwxvUbcGo7kL0BgzhGxU0yyjLwAn8AIm/20=",
urls = ["https://github.com/jqlang/jq/releases/download/jq-1.5/jq-linux64"],
)
http_file(
name = "jq_linux_arm64",
executable = True,
integrity = "sha256-TdLYoGYd8LIvG7mh+YMPBrbzuPfZEhGh7118TwaotKU=",
urls = ["https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-arm64"],
)
http_file(
name = "jq_linux_s390x",
executable = True,
integrity = "sha256-hot8PKdCJKAt22EyYd38LkOxLart1etYNz29x/LF+SQ=",
urls = ["https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-s390x"],
)
http_file(
name = "jq_macos_amd64",
executable = True,
integrity = "sha256-OG6SyYKlb+SFFGjXqTHfyilWDO4wag5mxqG9QGXT2sU=",
urls = ["https://github.com/jqlang/jq/releases/download/jq-1.5/jq-osx-amd64"],
)
http_file(
name = "jq_macos_arm64",
executable = True,
integrity = "sha256-C75hnmY+DeLFUL4v4NJA0HZ5nW+KZStw+gSuqKg2Loo=",
urls = ["https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-macos-arm64"],
)
http_file(
name = "jq_windows_amd64",
executable = True,
integrity = "sha256-6+zYQLpH779mgihoF4zHIaFRBgk396xAbj0xvQFb3pQ=",
urls = ["https://github.com/jqlang/jq/releases/download/jq-1.5/jq-win64.exe"],
)
# Keep the version in sync with the blake3 module.
http_file(
name = "blake3_test_vectors",
downloaded_file_path = "test_vectors.json",
integrity = "sha256-3LkeqKzMd+bW5jKvfNwamanzrnjPZI2llcfQZNsy9iQ=",
urls = ["https://github.com/BLAKE3-team/BLAKE3/raw/1.8.2/test_vectors/test_vectors.json"],
)
async_profiler_repos = use_extension("//:repositories.bzl", "async_profiler_repos")
use_repo(
async_profiler_repos,
"async_profiler",
"async_profiler_linux_arm64",
"async_profiler_linux_x64",
"async_profiler_macos",
)
# =========================================
# Other Bazel testing dependencies
# =========================================
bazel_dep(name = "bazel_ci_rules", version = "2.1.2")
bazel_dep(name = "rules_fuzzing", version = "0.8.0")
bazel_dep(name = "wabt", version = "1.0.37.bcr.1")
rbe = use_extension("@bazel_ci_rules//:rbe_config.bzl", "rbe_config_extension")
rbe.config(
name = "rbe_ubuntu2404",
preset = "ubuntu2404",
)
use_repo(rbe, "rbe_ubuntu2404")
list_source_repository = use_repo_rule("//src/test/shell/bazel:list_source_repository.bzl", "list_source_repository")
list_source_repository(name = "local_bazel_source_list")
winsdk_configure = use_repo_rule("//tools/res:winsdk_configure.bzl", "winsdk_configure")
winsdk_configure(name = "local_config_winsdk")
local_rust_configure = use_repo_rule("//scripts:local_rust_configure.bzl", "local_rust_configure")
local_rust_configure(name = "local_config_rust")
# /usr/local/kythe is setup on Bazel CI machines
local_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:local.bzl", "local_repository")
local_repository(
name = "kythe_release",
path = "/usr/local/kythe",
)
remote_coverage_tools_extension = use_extension("//tools/test:extensions.bzl", "remote_coverage_tools_extension")
use_repo(remote_coverage_tools_extension, "remote_coverage_tools")
crate = use_extension("@rules_rs//rs:extensions.bzl", "crate", dev_dependency = True)
crate.from_cargo(
name = "crates",
cargo_lock = "//src/rust:Cargo.lock",
cargo_toml = "//src/rust:Cargo.toml",
incompatible_no_root_alias_targets = True,
incompatible_no_root_crate_data = True,
platform_triples = [
"aarch64-apple-darwin",
"aarch64-pc-windows-msvc",
"aarch64-unknown-linux-gnu",
"x86_64-apple-darwin",
"x86_64-pc-windows-gnullvm",
"x86_64-pc-windows-msvc",
"x86_64-unknown-linux-gnu",
],
)
use_repo(crate, "crates")
# =========================================
# Register platforms & toolchains
# =========================================
register_execution_platforms("//:default_host_platform")
register_toolchains("//:all")
register_toolchains("@rs//...")
register_toolchains("@local_config_winsdk//:all")
register_toolchains("//tools/res:empty_rc_toolchain")
register_toolchains("@graalvm_ce_toolchains//:gvm")
register_toolchains(
"@remotejdk27_linux_aarch64_toolchain_config_repo//:all",
"@remotejdk27_linux_ppc64le_toolchain_config_repo//:all",
"@remotejdk27_linux_riscv64_toolchain_config_repo//:all",
"@remotejdk27_linux_s390x_toolchain_config_repo//:all",
"@remotejdk27_linux_toolchain_config_repo//:all",
"@remotejdk27_macos_aarch64_toolchain_config_repo//:all",
"@remotejdk27_macos_toolchain_config_repo//:all",
"@remotejdk27_win_arm64_toolchain_config_repo//:all",
"@remotejdk27_win_toolchain_config_repo//:all",
)