diff --git a/examples/nix_cross_compiling/MODULE.bazel b/examples/nix_cross_compiling/MODULE.bazel index 7200b81cbe..631ad86129 100644 --- a/examples/nix_cross_compiling/MODULE.bazel +++ b/examples/nix_cross_compiling/MODULE.bazel @@ -16,7 +16,7 @@ local_path_override( bazel_dep( name = "rules_nixpkgs_core", - version = "0.12.0", + version = "0.13.0", ) bazel_dep( name = "bazel_skylib", @@ -26,6 +26,10 @@ bazel_dep( name = "rules_cc", version = "0.0.17", ) +bazel_dep( + name = "platforms", + version = "0.0.11", +) internal = use_extension("//bazel:nix_repositories.bzl", "internal_ext") use_repo( diff --git a/extensions/bindgen/WORKSPACE.bazel b/extensions/bindgen/WORKSPACE.bazel index 94b61b59fd..b5d37b5518 100644 --- a/extensions/bindgen/WORKSPACE.bazel +++ b/extensions/bindgen/WORKSPACE.bazel @@ -1,60 +1 @@ workspace(name = "rules_rust_bindgen") - -# Users of `rules_rust` will commonly be unable to load it -# using a `local_repository`. Instead, to setup the rules, -# please see https://bazelbuild.github.io/rules_rust/#setup -local_repository( - name = "rules_rust", - path = "../..", -) - -load("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_register_toolchains") - -rules_rust_dependencies() - -rust_register_toolchains() - -load("@rules_rust//crate_universe:repositories.bzl", "crate_universe_dependencies") - -crate_universe_dependencies(bootstrap = True) - -load("@rules_rust//tools/rust_analyzer:deps.bzl", "rust_analyzer_dependencies") - -rust_analyzer_dependencies() - -load("//:repositories.bzl", "rust_bindgen_dependencies", "rust_bindgen_register_toolchains") - -rust_bindgen_dependencies() - -rust_bindgen_register_toolchains() - -load("//:transitive_repositories.bzl", "rust_bindgen_transitive_dependencies") - -rust_bindgen_transitive_dependencies() - -load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") - -bazel_skylib_workspace() - -# --- end stardoc - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") - -http_archive( - name = "bazel_ci_rules", - sha256 = "eca21884e6f66a88c358e580fd67a6b148d30ab57b1680f62a96c00f9bc6a07e", - strip_prefix = "bazelci_rules-1.0.0", - url = "https://github.com/bazelbuild/continuous-integration/releases/download/rules-1.0.0/bazelci_rules-1.0.0.tar.gz", -) - -# To run with RBE on Bazel CI, uncomment the following lines. -# -# load("@bazel_ci_rules//:rbe_repo.bzl", "rbe_preconfig") -# rbe_preconfig(name = "buildkite_config", toolchain = "ubuntu2004-bazel-java11") - -http_archive( - name = "rules_testing", - sha256 = "02c62574631876a4e3b02a1820cb51167bb9cdcdea2381b2fa9d9b8b11c407c4", - strip_prefix = "rules_testing-0.6.0", - url = "https://github.com/bazelbuild/rules_testing/releases/download/v0.6.0/rules_testing-v0.6.0.tar.gz", -) diff --git a/extensions/mdbook/WORKSPACE.bazel b/extensions/mdbook/WORKSPACE.bazel index 8def495f5e..6074d4e461 100644 --- a/extensions/mdbook/WORKSPACE.bazel +++ b/extensions/mdbook/WORKSPACE.bazel @@ -1,54 +1 @@ workspace(name = "rules_rust_mdbook") - -load("//mdbook:repositories.bzl", "mdbook_register_toolchains", "rules_mdbook_dependencies") - -rules_mdbook_dependencies() - -mdbook_register_toolchains() - -load("//mdbook:repositories_transitive.bzl", "rules_mdbook_transitive_deps") - -rules_mdbook_transitive_deps() - -# ============================================================================= -# Internal dependencies only -# ============================================================================= - -load("@rules_rust//crate_universe:repositories.bzl", "crate_universe_dependencies") - -crate_universe_dependencies() - -load("@rules_rust//tools/rust_analyzer:deps.bzl", "rust_analyzer_dependencies") - -rust_analyzer_dependencies() - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") - -http_archive( - name = "io_bazel_stardoc", - sha256 = "62bd2e60216b7a6fec3ac79341aa201e0956477e7c8f6ccc286f279ad1d96432", - urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/stardoc/releases/download/0.6.2/stardoc-0.6.2.tar.gz", - "https://github.com/bazelbuild/stardoc/releases/download/0.6.2/stardoc-0.6.2.tar.gz", - ], -) - -load("@io_bazel_stardoc//:setup.bzl", "stardoc_repositories") - -stardoc_repositories() - -load("@rules_jvm_external//:repositories.bzl", "rules_jvm_external_deps") - -rules_jvm_external_deps() - -load("@rules_jvm_external//:setup.bzl", "rules_jvm_external_setup") - -rules_jvm_external_setup() - -load("@io_bazel_stardoc//:deps.bzl", "stardoc_external_deps") - -stardoc_external_deps() - -load("@stardoc_maven//:defs.bzl", stardoc_pinned_maven_install = "pinned_maven_install") - -stardoc_pinned_maven_install() diff --git a/extensions/prost/WORKSPACE.bazel b/extensions/prost/WORKSPACE.bazel index f59107e98b..a5d250dc1b 100644 --- a/extensions/prost/WORKSPACE.bazel +++ b/extensions/prost/WORKSPACE.bazel @@ -1,76 +1 @@ workspace(name = "rules_rust_prost") - -# Users of `rules_rust` will commonly be unable to load it -# using a `local_repository`. Instead, to setup the rules, -# please see https://bazelbuild.github.io/rules_rust/#setup -local_repository( - name = "rules_rust", - path = "../..", -) - -load("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_register_toolchains") - -rules_rust_dependencies() - -rust_register_toolchains() - -load("@rules_rust//crate_universe:repositories.bzl", "crate_universe_dependencies") - -crate_universe_dependencies(bootstrap = True) - -load("@rules_rust//tools/rust_analyzer:deps.bzl", "rust_analyzer_dependencies") - -rust_analyzer_dependencies() - -# buildifier: disable=bzl-visibility -load("//private:repositories.bzl", "rust_prost_dependencies", "rust_prost_register_toolchains") - -rust_prost_dependencies() - -rust_prost_register_toolchains() - -load("//:transitive_repositories.bzl", "rust_prost_transitive_repositories") - -rust_prost_transitive_repositories() - -# Needed by protobuf -load("@rules_python//python:repositories.bzl", "py_repositories") - -py_repositories() - -# buildifier: disable=bzl-visibility -load("//private/tests:deps.bzl", "prost_test_deps") - -prost_test_deps() - -# buildifier: disable=bzl-visibility -load("//private/tests:deps_transitive.bzl", "prost_test_transitive_deps") - -prost_test_transitive_deps() - -load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") - -bazel_skylib_workspace() - -# --- end stardoc - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") - -http_archive( - name = "bazel_ci_rules", - sha256 = "eca21884e6f66a88c358e580fd67a6b148d30ab57b1680f62a96c00f9bc6a07e", - strip_prefix = "bazelci_rules-1.0.0", - url = "https://github.com/bazelbuild/continuous-integration/releases/download/rules-1.0.0/bazelci_rules-1.0.0.tar.gz", -) - -# To run with RBE on Bazel CI, uncomment the following lines. -# -# load("@bazel_ci_rules//:rbe_repo.bzl", "rbe_preconfig") -# rbe_preconfig(name = "buildkite_config", toolchain = "ubuntu2004-bazel-java11") - -http_archive( - name = "rules_testing", - sha256 = "02c62574631876a4e3b02a1820cb51167bb9cdcdea2381b2fa9d9b8b11c407c4", - strip_prefix = "rules_testing-0.6.0", - url = "https://github.com/bazelbuild/rules_testing/releases/download/v0.6.0/rules_testing-v0.6.0.tar.gz", -) diff --git a/extensions/protobuf/WORKSPACE.bazel b/extensions/protobuf/WORKSPACE.bazel index fe7c379926..a1dc5378bc 100644 --- a/extensions/protobuf/WORKSPACE.bazel +++ b/extensions/protobuf/WORKSPACE.bazel @@ -1,65 +1 @@ workspace(name = "rules_rust_protobuf") - -# Users of `rules_rust` will commonly be unable to load it -# using a `local_repository`. Instead, to setup the rules, -# please see https://bazelbuild.github.io/rules_rust/#setup -local_repository( - name = "rules_rust", - path = "../..", -) - -load("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_register_toolchains") - -rules_rust_dependencies() - -rust_register_toolchains() - -load("@rules_rust//crate_universe:repositories.bzl", "crate_universe_dependencies") - -crate_universe_dependencies(bootstrap = True) - -load("@rules_rust//tools/rust_analyzer:deps.bzl", "rust_analyzer_dependencies") - -rust_analyzer_dependencies() - -load("//:repositories.bzl", "rust_proto_protobuf_dependencies", "rust_proto_protobuf_register_toolchains") - -rust_proto_protobuf_dependencies() - -rust_proto_protobuf_register_toolchains() - -load("//:transitive_repositories.bzl", "rust_proto_protobuf_transitive_repositories") - -rust_proto_protobuf_transitive_repositories() - -# Needed by protobuf -load("@rules_python//python:repositories.bzl", "py_repositories") - -py_repositories() - -load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") - -bazel_skylib_workspace() - -# --- end stardoc - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") - -http_archive( - name = "bazel_ci_rules", - sha256 = "eca21884e6f66a88c358e580fd67a6b148d30ab57b1680f62a96c00f9bc6a07e", - strip_prefix = "bazelci_rules-1.0.0", - url = "https://github.com/bazelbuild/continuous-integration/releases/download/rules-1.0.0/bazelci_rules-1.0.0.tar.gz", -) - -# To run with RBE on Bazel CI, uncomment the following lines. -# -# load("@bazel_ci_rules//:rbe_repo.bzl", "rbe_preconfig") -# rbe_preconfig(name = "buildkite_config", toolchain = "ubuntu2004-bazel-java11") - -http_archive( - name = "rules_testing", - sha256 = "02c62574631876a4e3b02a1820cb51167bb9cdcdea2381b2fa9d9b8b11c407c4", - strip_prefix = "rules_testing-0.6.0", - url = "https://github.com/bazelbuild/rules_testing/releases/download/v0.6.0/rules_testing-v0.6.0.tar.gz", -) diff --git a/extensions/wasm_bindgen/WORKSPACE.bazel b/extensions/wasm_bindgen/WORKSPACE.bazel index 9ff1eae1ca..a4b8eb7017 100644 --- a/extensions/wasm_bindgen/WORKSPACE.bazel +++ b/extensions/wasm_bindgen/WORKSPACE.bazel @@ -1,66 +1 @@ workspace(name = "rules_rust_wasm_bindgen") - -# Users of `rules_rust` will commonly be unable to load it -# using a `local_repository`. Instead, to setup the rules, -# please see https://bazelbuild.github.io/rules_rust/#setup -local_repository( - name = "rules_rust", - path = "../..", -) - -load("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_register_toolchains") - -rules_rust_dependencies() - -rust_register_toolchains() - -load("@rules_rust//crate_universe:repositories.bzl", "crate_universe_dependencies") - -crate_universe_dependencies(bootstrap = True) - -load("@rules_rust//tools/rust_analyzer:deps.bzl", "rust_analyzer_dependencies") - -rust_analyzer_dependencies() - -load("//:repositories.bzl", "rust_wasm_bindgen_repositories") - -rust_wasm_bindgen_repositories() - -load("//rules_js:repositories.bzl", "js_rust_wasm_bindgen_dependencies") - -js_rust_wasm_bindgen_dependencies() - -load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") - -bazel_skylib_workspace() - -# --- end stardoc - -load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies") - -rules_js_dependencies() - -load("@aspect_rules_js//js:toolchains.bzl", "DEFAULT_NODE_VERSION", "rules_js_register_toolchains") - -rules_js_register_toolchains(node_version = DEFAULT_NODE_VERSION) - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") - -http_archive( - name = "bazel_ci_rules", - sha256 = "eca21884e6f66a88c358e580fd67a6b148d30ab57b1680f62a96c00f9bc6a07e", - strip_prefix = "bazelci_rules-1.0.0", - url = "https://github.com/bazelbuild/continuous-integration/releases/download/rules-1.0.0/bazelci_rules-1.0.0.tar.gz", -) - -# To run with RBE on Bazel CI, uncomment the following lines. -# -# load("@bazel_ci_rules//:rbe_repo.bzl", "rbe_preconfig") -# rbe_preconfig(name = "buildkite_config", toolchain = "ubuntu2004-bazel-java11") - -http_archive( - name = "rules_testing", - sha256 = "02c62574631876a4e3b02a1820cb51167bb9cdcdea2381b2fa9d9b8b11c407c4", - strip_prefix = "rules_testing-0.6.0", - url = "https://github.com/bazelbuild/rules_testing/releases/download/v0.6.0/rules_testing-v0.6.0.tar.gz", -)