diff --git a/.bazelci/presubmit.yml b/.bazelci/presubmit.yml index 2607dbd891..e062d4b295 100644 --- a/.bazelci/presubmit.yml +++ b/.bazelci/presubmit.yml @@ -34,7 +34,6 @@ default_macos_targets: &default_macos_targets default_windows_targets: &default_windows_targets - "--" # Allows negative patterns; hack for https://github.com/bazelbuild/continuous-integration/pull/245 - "//..." - - "-//test/proto/..." - "-//test/unit/pipelined_compilation/..." default_windows_no_runfiles_targets: &default_windows_no_runfiles_targets - "--" # Allows negative patterns; hack for https://github.com/bazelbuild/continuous-integration/pull/245 @@ -43,7 +42,6 @@ default_windows_no_runfiles_targets: &default_windows_no_runfiles_targets - "-//crate_universe/..." - "-//test/chained_direct_deps:mod3_doc_test" - "-//test/out_dir_in_tests:demo_lib_doc_test" - - "-//test/proto/..." - "-//test/rustc_env_files:output_test" - "-//test/test_env_launcher:test" - "-//test/test_env:test_manifest_dir" @@ -238,12 +236,9 @@ tasks: build_flags: - "--enable_bzlmod" build_targets: - - "//bindgen/3rdparty:bindgen" - "//crate_universe:cargo_bazel_bin" - - "//proto/prost/private:prost_runtime" - "//tools/runfiles" - "//util/import" - - "//wasm_bindgen/3rdparty:wasm_bindgen" ubuntu2004_clang: name: With Clang platform: ubuntu2004 diff --git a/.bazelignore b/.bazelignore index 4d6f7474f6..c058966579 100644 --- a/.bazelignore +++ b/.bazelignore @@ -1,9 +1,10 @@ +.direnv bzlmod +crate_universe/private/bootstrap docs examples -crate_universe/private/bootstrap +extensions test/aliased_toolchains test/bzlmod_repo_mapping test/cc_common_link test/no_std -.direnv \ No newline at end of file diff --git a/.bcr/source.template.json b/.bcr/source.template.json index 866ee25ae1..6767b685d9 100644 --- a/.bcr/source.template.json +++ b/.bcr/source.template.json @@ -1,5 +1,5 @@ { "integrity": "**leave this alone**", "strip_prefix": "", - "url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}-v{VERSION}.tar.gz" + "url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}-{VERSION}.tar.gz" } diff --git a/.gitattributes b/.gitattributes index 76435c87ba..105d00b526 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,20 +1,20 @@ **/*Cargo.Bazel.lock linguist-generated **/cargo-bazel-lock.json linguist-generated -bindgen/3rdparty/crates/** linguist-generated crate_universe/3rdparty/crates/** linguist-generated crate_universe/test_data/metadata/*/metadata.json linguist-generated examples/bzlmod/hello_world/third-party/crates/** linguist-generated +examples/crate_universe_unnamed/vendor_remote_manifests/crates/** linguist-generated +examples/crate_universe_unnamed/vendor_remote_pkgs/crates/** linguist-generated examples/crate_universe/vendor_external/crates/** linguist-generated examples/crate_universe/vendor_local_manifests/crates/** linguist-generated examples/crate_universe/vendor_local_pkgs/crates/** linguist-generated examples/crate_universe/vendor_remote_manifests/crates/** linguist-generated examples/crate_universe/vendor_remote_pkgs/crates/** linguist-generated -examples/crate_universe_unnamed/vendor_remote_manifests/crates/** linguist-generated -examples/crate_universe_unnamed/vendor_remote_pkgs/crates/** linguist-generated examples/sys/basic/3rdparty/crates/** linguist-generated examples/sys/complex/3rdparty/crates/** linguist-generated -proto/prost/private/3rdparty/crates/** linguist-generated -proto/protobuf/3rdparty/crates/** linguist-generated +extensions/bindgen/3rdparty/crates/** linguist-generated +extensions/prost/private/3rdparty/crates/** linguist-generated +extensions/proto/protobuf/3rdparty/crates/** linguist-generated +extensions/wasm_bindgen/3rdparty/crates/** linguist-generated tools/rust_analyzer/3rdparty/crates/** linguist-generated util/import/3rdparty/crates/** linguist-generated -wasm_bindgen/3rdparty/crates/** linguist-generated diff --git a/.github/release_notes.template b/.github/release_notes.template index 1809d58ad2..eff1b65a24 100644 --- a/.github/release_notes.template +++ b/.github/release_notes.template @@ -1,5 +1,7 @@ # {version} +Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup + ## Bzlmod ```python @@ -13,8 +15,25 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_rust", integrity = "sha256-{sha256_base64}", - urls = ["https://github.com/bazelbuild/rules_rust/releases/download/{version}/rules_rust-v{version}.tar.gz"], + urls = ["https://github.com/bazelbuild/rules_rust/releases/download/{version}/rules_rust-{version}.tar.gz"], ) ``` -Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup +## extensions + +### Bzlmod + +```python +bazel_dep(name = "rules_rust_ext", version = "{version}") +``` + +### WORKSPACE + +```python +load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") +http_archive( + name = "rules_rust", + integrity = "sha256-{ext_sha256_base64}", + urls = ["https://github.com/bazelbuild/rules_rust/releases/download/{version}/rules_rust_ext-{version}.tar.gz"], +) +``` diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 08be4d6a46..6598382060 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -128,11 +128,22 @@ jobs: - name: Create the rules archive run: | # Update urls and sha256 values - bazel ${BAZEL_STARTUP_FLAGS[@]} run //crate_universe/tools/urls_generator -- --artifacts-dir="${ARTIFACTS_DIR}" --url-prefix="${URL_PREFIX}" + bazel ${BAZEL_STARTUP_FLAGS[@]} run //crate_universe/tools/urls_generator \ + -- --artifacts-dir="${ARTIFACTS_DIR}" --url-prefix="${URL_PREFIX}" + bazel clean + # Build an archive of the repo contents. # `examples/bzlmod` is included for the BCR presubmit; it must appear before --exclude="examples" - tar -czf ${{ github.workspace }}/.github/rules_rust.tar.gz -C ${{ github.workspace }} --exclude=".git" --exclude=".github" --exclude="crate_universe/target" examples/bzlmod --exclude="examples" . + tar -czf ${{ github.workspace }}/.github/rules_rust.tar.gz \ + -C ${{ github.workspace }} \ + --exclude=".git" --exclude=".github" \ + --exclude="crate_universe/target" \ + examples/bzlmod \ + --exclude="examples" \ + --exclude="extensions" \ + . + # Save the sha256 checksum of the distro archive to the environment sha256_base64="$(shasum --algorithm 256 ${{ github.workspace }}/.github/rules_rust.tar.gz | awk '{ print $1 }' | xxd -r -p | base64)" echo "ARCHIVE_SHA256_BASE64=${sha256_base64}" >> $GITHUB_ENV @@ -140,17 +151,34 @@ jobs: CARGO_BAZEL_GENERATOR_URL: file://${{ github.workspace }}/crate_universe/target/artifacts/x86_64-unknown-linux-gnu/cargo-bazel ARTIFACTS_DIR: ${{ github.workspace }}/crate_universe/target/artifacts URL_PREFIX: https://github.com/${{ github.repository_owner }}/rules_rust/releases/download/${{ env.RELEASE_VERSION }} + - name: Create the rules extensions archive + run: | + # Build an archive of the repo contents. + tar -czf ${{ github.workspace }}/.github/rules_rust_ext.tar.gz \ + -C ${{ github.workspace }}/extensions \ + --exclude="examples" \ + . + + # Save the sha256 checksum of the distro archive to the environment + sha256_base64="$(shasum --algorithm 256 ${{ github.workspace }}/.github/rules_rust_ext.tar.gz | awk '{ print $1 }' | xxd -r -p | base64)" + echo "ARCHIVE_EXT_SHA256_BASE64=${sha256_base64}" >> $GITHUB_ENV # Upload the artifact in case creating a release fails so all artifacts can then be manually recovered. - uses: actions/upload-artifact@v3 with: name: "rules_rust.tar.gz" path: ${{ github.workspace }}/.github/rules_rust.tar.gz if-no-files-found: error + - uses: actions/upload-artifact@v3 + with: + name: "rules_rust_ext.tar.gz" + path: ${{ github.workspace }}/.github/rules_rust_ext.tar.gz + if-no-files-found: error - name: Generate release notes run: | # Generate the release notes sed 's#{version}#${{ env.RELEASE_VERSION }}#g' ${{ github.workspace }}/.github/release_notes.template \ | sed 's#{sha256_base64}#${{ env.ARCHIVE_SHA256_BASE64 }}#g' \ + | sed 's#{ext_sha256_base64}#${{ env.ARCHIVE_EXT_SHA256_BASE64 }}#g' \ > ${{ github.workspace }}/.github/release_notes.txt - name: Create release uses: softprops/action-gh-release@v1 @@ -169,10 +197,20 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.rules_rust_release.outputs.upload_url }} - asset_name: rules_rust-v${{ env.RELEASE_VERSION }}.tar.gz + asset_name: rules_rust-${{ env.RELEASE_VERSION }}.tar.gz asset_path: ${{ github.workspace }}/.github/rules_rust.tar.gz asset_content_type: application/gzip + - name: "Upload the rules extensions archive" + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.rules_rust_release.outputs.upload_url }} + asset_name: rules_rust_ext-${{ env.RELEASE_VERSION }}.tar.gz + asset_path: ${{ github.workspace }}/.github/rules_rust_ext.tar.gz + asset_content_type: application/gzip + # There must be a upload action for each platform triple we create - name: "Upload aarch64-apple-darwin" uses: actions/upload-release-asset@v1 diff --git a/MODULE.bazel b/MODULE.bazel index 6fb4171709..5faf13258a 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -25,35 +25,12 @@ bazel_dep( name = "rules_license", version = "0.0.8", ) -bazel_dep( - name = "rules_proto", - version = "6.0.2", -) bazel_dep( name = "apple_support", version = "1.13.0", repo_name = "build_bazel_apple_support", ) -bazel_dep( - name = "protobuf", - version = "21.7", - repo_name = "com_google_protobuf", -) -bazel_dep( - name = "aspect_rules_js", - version = "1.39.0", -) -bazel_dep( - name = "bazel_ci_rules", - version = "1.0.0", - dev_dependency = True, -) -bazel_dep( - name = "rules_python", - version = "0.31.0", - dev_dependency = True, -) bazel_dep( name = "rules_testing", version = "0.6.0", @@ -99,9 +76,6 @@ use_repo( "cui__tracing-0.1.40", "cui__tracing-subscriber-0.3.18", "cui__url-2.5.2", - "generated_inputs_in_external_repo", - "libc", - "llvm-raw", "rrra__anyhow-1.0.71", "rrra__clap-4.3.11", "rrra__env_logger-0.10.0", @@ -109,53 +83,7 @@ use_repo( "rrra__log-0.4.19", "rrra__serde-1.0.171", "rrra__serde_json-1.0.102", - "rules_rust_bindgen__bindgen-0.70.1", - "rules_rust_bindgen__bindgen-cli-0.70.1", - "rules_rust_bindgen__clang-sys-1.8.1", - "rules_rust_bindgen__clap-4.5.17", - "rules_rust_bindgen__clap_complete-4.5.26", - "rules_rust_bindgen__env_logger-0.10.2", - "rules_rust_prost", - "rules_rust_prost__h2-0.4.6", - "rules_rust_prost__heck", - "rules_rust_prost__prost-0.13.1", - "rules_rust_prost__prost-types-0.13.1", - "rules_rust_prost__protoc-gen-prost-0.4.0", - "rules_rust_prost__protoc-gen-tonic-0.4.1", - "rules_rust_prost__tokio-1.39.3", - "rules_rust_prost__tokio-stream-0.1.15", - "rules_rust_prost__tonic-0.12.1", - "rules_rust_proto__grpc-0.6.2", - "rules_rust_proto__grpc-compiler-0.6.2", - "rules_rust_proto__log-0.4.17", - "rules_rust_proto__protobuf-2.8.2", - "rules_rust_proto__protobuf-codegen-2.8.2", - "rules_rust_proto__tls-api-0.1.22", - "rules_rust_proto__tls-api-stub-0.1.22", - "rules_rust_test_load_arbitrary_tool", "rules_rust_tinyjson", - "rules_rust_toolchain_test_target_json", - "rules_rust_wasm_bindgen__anyhow-1.0.71", - "rules_rust_wasm_bindgen__assert_cmd-1.0.8", - "rules_rust_wasm_bindgen__diff-0.1.13", - "rules_rust_wasm_bindgen__docopt-1.1.1", - "rules_rust_wasm_bindgen__env_logger-0.8.4", - "rules_rust_wasm_bindgen__log-0.4.19", - "rules_rust_wasm_bindgen__predicates-1.0.8", - "rules_rust_wasm_bindgen__rayon-1.7.0", - "rules_rust_wasm_bindgen__rouille-3.6.2", - "rules_rust_wasm_bindgen__serde-1.0.171", - "rules_rust_wasm_bindgen__serde_derive-1.0.171", - "rules_rust_wasm_bindgen__serde_json-1.0.102", - "rules_rust_wasm_bindgen__tempfile-3.6.0", - "rules_rust_wasm_bindgen__ureq-2.8.0", - "rules_rust_wasm_bindgen__walrus-0.20.3", - "rules_rust_wasm_bindgen__wasm-bindgen-0.2.92", - "rules_rust_wasm_bindgen__wasm-bindgen-cli-support-0.2.92", - "rules_rust_wasm_bindgen__wasm-bindgen-shared-0.2.92", - "rules_rust_wasm_bindgen__wasmparser-0.102.0", - "rules_rust_wasm_bindgen__wasmprinter-0.2.60", - "rules_rust_wasm_bindgen_cli", ) rust = use_extension("//rust:extensions.bzl", "rust") @@ -166,24 +94,23 @@ register_toolchains( "@rust_toolchains//:all", ) -register_toolchains( - "//proto/protobuf:default-proto-toolchain", -) - -register_toolchains( - "//proto/prost:default_prost_toolchain", -) - -register_toolchains( - "//bindgen:default_bindgen_toolchain", -) - rust_host_tools = use_extension("//rust:extensions.bzl", "rust_host_tools") use_repo(rust_host_tools, "rust_host_tools") cargo_bazel_bootstrap = use_extension("//crate_universe/private/module_extensions:cargo_bazel_bootstrap.bzl", "cargo_bazel_bootstrap") use_repo(cargo_bazel_bootstrap, "cargo_bazel_bootstrap") +rust_test = use_extension("//test:test_extensions.bzl", "rust_test", dev_dependency = True) +use_repo( + rust_test, + "generated_inputs_in_external_repo", + "libc", + "rules_rust_test_load_arbitrary_tool", + "rules_rust_toolchain_test_target_json", + "t3p__serde-1.0.214", + "t3p__serde_json-1.0.132", +) + register_toolchains( "//test/foreign_toolchain_make_variables:toolchain_for_test", dev_dependency = True, diff --git a/WORKSPACE.bazel b/WORKSPACE.bazel index 2432d31228..f0732d4fb4 100644 --- a/WORKSPACE.bazel +++ b/WORKSPACE.bazel @@ -14,45 +14,10 @@ load("//crate_universe/tools/cross_installer:cross_installer_deps.bzl", "cross_i cross_installer_deps() -# buildifier: disable=bzl-visibility -load("@rules_rust//proto/prost/private:repositories.bzl", "rust_prost_dependencies", "rust_prost_register_toolchains") - -rust_prost_dependencies() - -rust_prost_register_toolchains() - -load("@rules_rust//proto/prost:transitive_repositories.bzl", "rust_prost_transitive_repositories") - -rust_prost_transitive_repositories() - -load("@rules_rust//proto/protobuf:repositories.bzl", "rust_proto_protobuf_dependencies", "rust_proto_protobuf_register_toolchains") - -rust_proto_protobuf_dependencies() - -rust_proto_protobuf_register_toolchains() - -load("@rules_rust//proto/protobuf:transitive_repositories.bzl", "rust_proto_protobuf_transitive_repositories") - -rust_proto_protobuf_transitive_repositories() - -load("@rules_rust//bindgen:repositories.bzl", "rust_bindgen_dependencies", "rust_bindgen_register_toolchains") - -rust_bindgen_dependencies() - -rust_bindgen_register_toolchains() - -load("@rules_rust//bindgen:transitive_repositories.bzl", "rust_bindgen_transitive_dependencies") - -rust_bindgen_transitive_dependencies() - load("@rules_rust//tools/rust_analyzer:deps.bzl", "rust_analyzer_dependencies") rust_analyzer_dependencies() -load("@rules_rust//wasm_bindgen:repositories.bzl", "rust_wasm_bindgen_repositories") - -rust_wasm_bindgen_repositories() - load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") bazel_skylib_workspace() diff --git a/WORKSPACE.bzlmod b/WORKSPACE.bzlmod new file mode 100644 index 0000000000..53ff64a6fc --- /dev/null +++ b/WORKSPACE.bzlmod @@ -0,0 +1 @@ +workspace(name = "rules_rust") diff --git a/buildifier b/buildifier deleted file mode 100644 index 78f6e2aac6..0000000000 Binary files a/buildifier and /dev/null differ diff --git a/docs/BUILD.bazel b/docs/BUILD.bazel index 0f4842b507..5d441fcef4 100644 --- a/docs/BUILD.bazel +++ b/docs/BUILD.bazel @@ -26,13 +26,14 @@ bzl_library( name = "all_docs", deps = [ ":docs_deps", - "@rules_rust//bindgen:bzl_lib", "@rules_rust//cargo:bzl_lib", "@rules_rust//crate_universe:bzl_lib", "@rules_rust//crate_universe/private/module_extensions:bzl_lib", - "@rules_rust//proto:bzl_lib", "@rules_rust//rust:bzl_lib", - "@rules_rust//wasm_bindgen:bzl_lib", + "@rules_rust_ext//bindgen:bzl_lib", + "@rules_rust_ext//prost:bzl_lib", + "@rules_rust_ext//protobuf:bzl_lib", + "@rules_rust_ext//wasm_bindgen:bzl_lib", ], ) @@ -79,17 +80,6 @@ PAGES = dict([ "rust_analyzer_toolchain", ], ), - page( - name = "rust_bindgen", - header_template = ":rust_bindgen.vm", - symbols = [ - "rust_bindgen_library", - "rust_bindgen", - "rust_bindgen_toolchain", - "rust_bindgen_dependencies", - "rust_bindgen_register_toolchains", - ], - ), page( name = "rust_clippy", header_template = ":rust_clippy.vm", @@ -114,23 +104,6 @@ PAGES = dict([ "rustfmt_toolchain", ], ), - page( - name = "rust_proto", - header_template = ":rust_proto.vm", - symbols = [ - "rust_prost_library", - "rust_prost_toolchain", - "rust_prost_dependencies", - "rust_prost_transitive_repositories", - ] + [ - "rust_proto_library", - "rust_grpc_library", - "rust_proto_protobuf_toolchain", - "rust_proto_protobuf_dependencies", - "rust_proto_protobuf_register_toolchains", - "rust_proto_protobuf_transitive_repositories", - ], - ), page( name = "rust_repositories", symbols = [ @@ -146,17 +119,6 @@ PAGES = dict([ "rust_toolchain", ], ), - page( - name = "rust_wasm_bindgen", - header_template = ":rust_wasm_bindgen.vm", - symbols = [ - "rust_wasm_bindgen_dependencies", - "rust_wasm_bindgen_register_toolchains", - "rust_wasm_bindgen_toolchain", - "rust_wasm_bindgen", - "RustWasmBindgenInfo", - ], - ), page( name = "settings", symbols = [ @@ -213,6 +175,34 @@ stardoc( deps = [":all_docs"], ) +stardoc( + name = "rust_bindgen", + out = "rust_bindgen.md", + input = "@rules_rust_ext//bindgen:defs.bzl", + deps = ["@rules_rust_ext//bindgen:bzl_lib"], +) + +stardoc( + name = "rust_protobuf", + out = "rust_protobuf.md", + input = "@rules_rust_ext//protobuf:defs.bzl", + deps = ["@rules_rust_ext//protobuf:bzl_lib"], +) + +stardoc( + name = "rust_prost", + out = "rust_prost.md", + input = "@rules_rust_ext//prost:defs.bzl", + deps = ["@rules_rust_ext//prost:bzl_lib"], +) + +stardoc( + name = "rust_wasm_bindgen", + out = "rust_wasm_bindgen.md", + input = "@rules_rust_ext//wasm_bindgen:defs.bzl", + deps = ["@rules_rust_ext//wasm_bindgen:bzl_lib"], +) + sh_binary( name = "update_docs", srcs = ["update_docs.sh"], diff --git a/docs/WORKSPACE.bazel b/docs/WORKSPACE.bazel index 1056327b93..b3e71f7bca 100644 --- a/docs/WORKSPACE.bazel +++ b/docs/WORKSPACE.bazel @@ -15,20 +15,25 @@ load("@rules_rust//crate_universe:repositories.bzl", "crate_universe_dependencie crate_universe_dependencies() -load("@rules_rust//proto/prost:repositories.bzl", "rust_prost_dependencies") +local_repository( + name = "rules_rust_ext", + path = "../extensions", +) + +load("@rules_rust_ext//prost:repositories.bzl", "rust_prost_dependencies") rust_prost_dependencies() -load("@rules_rust//proto/prost:transitive_repositories.bzl", "rust_prost_transitive_repositories") +load("@rules_rust_ext//prost:transitive_repositories.bzl", "rust_prost_transitive_repositories") rust_prost_transitive_repositories() -load("@rules_rust//proto/protobuf:repositories.bzl", "rust_proto_protobuf_dependencies") +load("@rules_rust_ext//protobuf:repositories.bzl", "rust_proto_protobuf_dependencies") rust_proto_protobuf_dependencies() load( - "@rules_rust//wasm_bindgen:repositories.bzl", + "@rules_rust_ext//wasm_bindgen:repositories.bzl", "rust_wasm_bindgen_dependencies", "rust_wasm_bindgen_register_toolchains", ) diff --git a/docs/rust_bindgen.vm b/docs/rust_bindgen.vm deleted file mode 100644 index 676e4820e8..0000000000 --- a/docs/rust_bindgen.vm +++ /dev/null @@ -1,40 +0,0 @@ -#[[ -## Overview - -These rules are for using [Bindgen][bindgen] to generate [Rust][rust] bindings to C (and some C++) libraries. - -[rust]: http://www.rust-lang.org/ -[bindgen]: https://github.com/rust-lang/rust-bindgen - -See the [bindgen example](https://github.com/bazelbuild/rules_rust/tree/main/examples/bindgen/BUILD.bazel) for a more complete example of use. - -### Setup - -To use the Rust bindgen rules, add the following to your `WORKSPACE` file to add the -external repositories for the Rust bindgen toolchain (in addition to the [rust rules setup](https://bazelbuild.github.io/rules_rust/#setup)): - -```python -load("@rules_rust//bindgen:repositories.bzl", "rust_bindgen_dependencies", "rust_bindgen_register_toolchains") - -rust_bindgen_dependencies() - -rust_bindgen_register_toolchains() - -load("@rules_rust//bindgen:transitive_repositories.bzl", "rust_bindgen_transitive_dependencies") - -rust_bindgen_transitive_dependencies() -``` - -Bindgen aims to be as hermetic as possible so will end up building `libclang` from [llvm-project][llvm_proj] from -source. If this is found to be undesirable then no Bindgen related calls should be added to your WORKSPACE and instead -users should define their own repositories using something akin to [crate_universe][cra_uni] and define their own -toolchains following the instructions for [rust_bindgen_toolchain](#rust_bindgen_toolchain). - -[llvm_proj]: https://github.com/llvm/llvm-project -[cra_uni]: https://bazelbuild.github.io/rules_rust/crate_universe.html - ---- - ---- - -]]# diff --git a/docs/rust_proto.vm b/docs/rust_proto.vm deleted file mode 100644 index 8344994f61..0000000000 --- a/docs/rust_proto.vm +++ /dev/null @@ -1,240 +0,0 @@ -#[[ -## Overview -These build rules are used for building [protobufs][protobuf]/[gRPC][grpc] in [Rust][rust] with Bazel. - -There are two rule sets. The first ruleset defines the `rust_prost_library` which generates Rust code -using the [`prost`] and [`tonic`] dependencies. The second ruleset defines the `rust_proto_library` and -`rust_grpc_library` rules which generate Rust code using the [`rust-protobuf`] dependencies. - -[rust]: http://www.rust-lang.org/ -[protobuf]: https://developers.google.com/protocol-buffers/ -[grpc]: https://grpc.io -[`rust-protobuf`]: https://github.com/stepancheg/rust-protobuf/ - -See the [protobuf example](../examples/proto) for a more complete example of use. - -### Prost Setup - -```python -load("@rules_rust//proto/prost:repositories.bzl", "rust_prost_dependencies") - -rust_prost_dependencies() - -load("@rules_rust//proto/prost:transitive_repositories.bzl", "rust_prost_transitive_repositories") - -rust_prost_transitive_repositories() -``` - -The `prost` and `tonic` rules do not specify a default toolchain in order to avoid mismatched -dependency issues. To setup the `prost` and `tonic` toolchain, please see the section -[Customizing `prost` and `tonic` Dependencies](#custom-prost-deps). - -For additional information about Bazel toolchains, see [here](https://docs.bazel.build/versions/master/toolchains.html). - -#### Customizing `prost` and `tonic` Dependencies - -These rules depend on the [`prost`] and [`tonic`] dependencies. To setup the necessary toolchain -for these rules, you must define a toolchain with the [`prost`], [`prost-types`], [`tonic`], [`protoc-gen-prost`], and [`protoc-gen-tonic`] crates as well as the [`protoc`] binary. - -[`prost`]: https://crates.io/crates/prost -[`prost-types`]: https://crates.io/crates/prost-types -[`protoc-gen-prost`]: https://crates.io/crates/protoc-gen-prost -[`protoc-gen-tonic`]: https://crates.io/crates/protoc-gen-tonic -[`tonic`]: https://crates.io/crates/tonic -[`protoc`]: https://github.com/protocolbuffers/protobuf - -To get access to these crates, you can use the [crate_universe](./crate_universe.md) repository -rules. For example: - -```python -load("//crate_universe:defs.bzl", "crate", "crates_repository") - -crates_repository( - name = "crates_io", - annotations = { - "protoc-gen-prost": [crate.annotation( - gen_binaries = ["protoc-gen-prost"], - patch_args = [ - "-p1", - ], - patches = [ - # Note: You will need to use this patch until a version greater than `0.2.2` of - # `protoc-gen-prost` is released. - "@rules_rust//proto/prost/private/3rdparty/patches:protoc-gen-prost.patch", - ], - )], - "protoc-gen-tonic": [crate.annotation( - gen_binaries = ["protoc-gen-tonic"], - )], - }, - cargo_lockfile = "Cargo.Bazel.lock", - mode = "remote", - packages = { - "prost": crate.spec( - version = "0", - ), - "prost-types": crate.spec( - version = "0", - ), - "protoc-gen-prost": crate.spec( - version = "0", - ), - "protoc-gen-tonic": crate.spec( - version = "0", - ), - "tonic": crate.spec( - version = "0", - ), - }, - repository_name = "rules_rust_prost", - tags = ["manual"], -) -``` - -You can then define a toolchain with the `rust_prost_toolchain` rule which uses the crates -defined above. For example: - -```python -load("@rules_rust//proto/prost:defs.bzl", "rust_prost_toolchain") -load("@rules_rust//rust:defs.bzl", "rust_library_group") - -rust_library_group( - name = "prost_runtime", - deps = [ - "@crates_io//:prost", - ], -) - -rust_library_group( - name = "tonic_runtime", - deps = [ - ":prost_runtime", - "@crates_io//:tonic", - ], -) - -rust_prost_toolchain( - name = "prost_toolchain_impl", - prost_plugin = "@crates_io//:protoc-gen-prost__protoc-gen-prost", - prost_runtime = ":prost_runtime", - prost_types = "@crates_io//:prost-types", - proto_compiler = "@com_google_protobuf//:protoc", - tonic_plugin = "@crates_io//:protoc-gen-tonic__protoc-gen-tonic", - tonic_runtime = ":tonic_runtime", -) - -toolchain( - name = "prost_toolchain", - toolchain = "prost_toolchain_impl", - toolchain_type = "@rules_rust//proto/prost:toolchain_type", -) -``` - -Lastly, you must register the toolchain in your `WORKSPACE` file. For example: - -```python -register_toolchains("//toolchains:prost_toolchain") -``` - -## Rust-Protobuf Setup - -To use the Rust proto rules, add the following to your `WORKSPACE` file to add the -external repositories for the Rust proto toolchain (in addition to the [rust rules setup](..)): - -```python -load("@rules_rust//proto/protobuf:repositories.bzl", "rust_proto_protobuf_dependencies", "rust_proto_protobuf_register_toolchains") - -rust_proto_protobuf_dependencies() - -rust_proto_protobuf_register_toolchains() - -load("@rules_rust//proto/protobuf:transitive_repositories.bzl", "rust_proto_protobuf_transitive_repositories") - -rust_proto_protobuf_transitive_repositories() -``` - -This will load the required dependencies for the [`rust-protobuf`] rules. It will also -register a default toolchain for the `rust_proto_library` and `rust_grpc_library` rules. - -To customize the `rust_proto_library` and `rust_grpc_library` toolchain, please see the section -[Customizing `rust-protobuf` Dependencies](#custom-proto-deps). - -For additional information about Bazel toolchains, see [here](https://docs.bazel.build/versions/master/toolchains.html). - -#### Customizing `rust-protobuf` Dependencies - -These rules depend on the [`protobuf`](https://crates.io/crates/protobuf) and -the [`grpc`](https://crates.io/crates/grpc) crates in addition to the [protobuf -compiler](https://github.com/google/protobuf). To obtain these crates, -`rust_proto_repositories` imports the given crates using BUILD files generated with -[crate_universe](./crate_universe.md). - -If you want to either change the protobuf and gRPC rust compilers, or to -simply use [crate_universe](./crate_universe.md) in a more -complex scenario (with more dependencies), you must redefine those -dependencies. - -To do this, once you've imported the needed dependencies (see our -[@rules_rust//proto/protobuf/3rdparty/BUILD.bazel](https://github.com/bazelbuild/rules_rust/blob/main/proto/protobuf/3rdparty/BUILD.bazel) -file to see the default dependencies), you need to create your own toolchain. -To do so you can create a BUILD file with your toolchain definition, for example: - -```python -load("@rules_rust//proto:toolchain.bzl", "rust_proto_toolchain") - -rust_proto_toolchain( - name = "proto-toolchain-impl", - # Path to the protobuf compiler. - protoc = "@com_google_protobuf//:protoc", - # Protobuf compiler plugin to generate rust gRPC stubs. - grpc_plugin = "//3rdparty/crates:cargo_bin_protoc_gen_rust_grpc", - # Protobuf compiler plugin to generate rust protobuf stubs. - proto_plugin = "//3rdparty/crates:cargo_bin_protoc_gen_rust", -) - -toolchain( - name = "proto-toolchain", - toolchain = ":proto-toolchain-impl", - toolchain_type = "@rules_rust//proto/protobuf:toolchain_type", -) -``` - -Now that you have your own toolchain, you need to register it by -inserting the following statement in your `WORKSPACE` file: - -```python -register_toolchains("//my/toolchains:proto-toolchain") -``` - -Finally, you might want to set the `rust_deps` attribute in -`rust_proto_library` and `rust_grpc_library` to change the compile-time -dependencies: - -```python -rust_proto_library( - ... - rust_deps = ["//3rdparty/crates:protobuf"], - ... -) - -rust_grpc_library( - ... - rust_deps = [ - "//3rdparty/crates:protobuf", - "//3rdparty/crates:grpc", - "//3rdparty/crates:tls_api", - "//3rdparty/crates:tls_api_stub", - ], - ... -) -``` - -__Note__: Ideally, we would inject those dependencies from the toolchain, -but due to [bazelbuild/bazel#6889](https://github.com/bazelbuild/bazel/issues/6889) -all dependencies added via the toolchain ends-up being in the wrong -configuration. - ---- ---- - -]]# diff --git a/docs/rust_wasm_bindgen.vm b/docs/rust_wasm_bindgen.vm deleted file mode 100644 index 7eedd7ad63..0000000000 --- a/docs/rust_wasm_bindgen.vm +++ /dev/null @@ -1,38 +0,0 @@ -#[[ -## Overview - -Bazel rules for generating wasm modules for Javascript using [wasm-bindgen][wb]. - -## Setup - -To begin using the `wasm-bindgen` rules, users can load the necessary dependencies -in their workspace by adding the following to their `WORKSPACE.bazel` file. - -```python -load("@rules_rust//wasm_bindgen:repositories.bzl", "rust_wasm_bindgen_dependencies", "rust_wasm_bindgen_register_toolchains") - -rust_wasm_bindgen_dependencies() - -rust_wasm_bindgen_register_toolchains() -``` - -This should enable users to start using the [rust_wasm_bindgen](#rust_wasm_bindgen) -rule. However, it's common to want to control the version of `wasm-bindgen` in the -workspace instead of relying on the one provided by `rules_rust`. In this case, users -should avoid calling `rust_wasm_bindgen_register_toolchains` and instead use the -[rust_wasm_bindgen_toolchain](#rust_wasm_bindgen_toolchain) rule to define their own -toolchains to register in the workspace. - -### Interfacing with Javascript rules - -While it's recommended for users to mantain their own , in the -`@rules_rust//wasm_bindgen` package there exists interface sub-packages for various -Javascript Bazel rules. E.g. `build_bazel_rules_nodejs` or `aspect_rules_js`. The -rules defined there are a more convenient way to use `rust_wasm_bindgen` with the -associated javascript rules due to the inclusion of additional providers. Each -directory contains a `defs.bzl` file that defines the different variants of -`rust_wasm_bindgen`. (e.g. `nodejs_rust_wasm_bindgen` for the `rules_nodejs` submodule). - - -[wb]: https://github.com/rustwasm/wasm-bindgen -]]# diff --git a/docs/src/SUMMARY.md b/docs/src/SUMMARY.md index 79b8413b06..1c75b887ce 100644 --- a/docs/src/SUMMARY.md +++ b/docs/src/SUMMARY.md @@ -9,9 +9,6 @@ - [rustdoc](./rust_doc.md) - [clippy](./rust_clippy.md) - [rustfmt](./rust_fmt.md) - - [proto](./rust_proto.md) - - [bindgen](./rust_bindgen.md) - - [wasm_bindgen](./rust_wasm_bindgen.md) - [cargo](./cargo.md) - [rust_analyzer](./rust_analyzer.md) - [all symbols](./flatten.md) @@ -19,3 +16,8 @@ - [crate_universe (bzlmod)](crate_universe_bzlmod.md) - [crate_universe (WORKSPACE)](crate_universe.md) - [Upstream Tooling](./upstream_tooling.md) +- [Extensions](./extensions.md) + - [bindgen](./rust_bindgen.md) + - [prost](./rust_prost.md) + - [protobuf](./rust_protobuf.md) + - [wasm_bindgen](./rust_wasm_bindgen.md) diff --git a/docs/src/extensions.md b/docs/src/extensions.md new file mode 100644 index 0000000000..2b457155ea --- /dev/null +++ b/docs/src/extensions.md @@ -0,0 +1,3 @@ +# Extensions + +Bazel rules for interfacing with other rules and integrations with popular 3rd party tools. diff --git a/docs/src/flatten.md b/docs/src/flatten.md index 3cd557706e..1939e25837 100644 --- a/docs/src/flatten.md +++ b/docs/src/flatten.md @@ -2,7 +2,6 @@ * [CrateInfo](#CrateInfo) * [DepInfo](#DepInfo) -* [RustWasmBindgenInfo](#RustWasmBindgenInfo) * [StdLibInfo](#StdLibInfo) * [capture_clippy_output](#capture_clippy_output) * [cargo_bootstrap_repository](#cargo_bootstrap_repository) @@ -19,28 +18,13 @@ * [rust_analyzer_toolchain](#rust_analyzer_toolchain) * [rust_analyzer_toolchain_repository](#rust_analyzer_toolchain_repository) * [rust_binary](#rust_binary) -* [rust_bindgen](#rust_bindgen) -* [rust_bindgen_dependencies](#rust_bindgen_dependencies) -* [rust_bindgen_library](#rust_bindgen_library) -* [rust_bindgen_register_toolchains](#rust_bindgen_register_toolchains) -* [rust_bindgen_toolchain](#rust_bindgen_toolchain) * [rust_clippy](#rust_clippy) * [rust_clippy_aspect](#rust_clippy_aspect) * [rust_doc](#rust_doc) * [rust_doc_test](#rust_doc_test) -* [rust_grpc_library](#rust_grpc_library) * [rust_library](#rust_library) * [rust_library_group](#rust_library_group) * [rust_proc_macro](#rust_proc_macro) -* [rust_prost_dependencies](#rust_prost_dependencies) -* [rust_prost_library](#rust_prost_library) -* [rust_prost_toolchain](#rust_prost_toolchain) -* [rust_prost_transitive_repositories](#rust_prost_transitive_repositories) -* [rust_proto_library](#rust_proto_library) -* [rust_proto_protobuf_dependencies](#rust_proto_protobuf_dependencies) -* [rust_proto_protobuf_register_toolchains](#rust_proto_protobuf_register_toolchains) -* [rust_proto_protobuf_toolchain](#rust_proto_protobuf_toolchain) -* [rust_proto_protobuf_transitive_repositories](#rust_proto_protobuf_transitive_repositories) * [rust_register_toolchains](#rust_register_toolchains) * [rust_repositories](#rust_repositories) * [rust_repository_set](#rust_repository_set) @@ -53,10 +37,6 @@ * [rust_toolchain_repository](#rust_toolchain_repository) * [rust_toolchain_repository_proxy](#rust_toolchain_repository_proxy) * [rust_toolchain_tools_repository](#rust_toolchain_tools_repository) -* [rust_wasm_bindgen](#rust_wasm_bindgen) -* [rust_wasm_bindgen_dependencies](#rust_wasm_bindgen_dependencies) -* [rust_wasm_bindgen_register_toolchains](#rust_wasm_bindgen_register_toolchains) -* [rust_wasm_bindgen_toolchain](#rust_wasm_bindgen_toolchain) * [rustfmt_aspect](#rustfmt_aspect) * [rustfmt_test](#rustfmt_test) * [rustfmt_toolchain](#rustfmt_toolchain) @@ -324,79 +304,6 @@ is available under the key `dsym_folder` in `OutputGroupInfo`. | version | A version to inject in the cargo environment variable. | String | optional | `"0.0.0"` | - - -## rust_bindgen - -
-rust_bindgen(name, bindgen_flags, cc_lib, clang_flags, header, merge_cc_lib_objects_into_rlib,
-             wrap_static_fns)
-
- -Generates a rust source file from a cc_library and a header. - -**ATTRIBUTES** - - -| Name | Description | Type | Mandatory | Default | -| :------------- | :------------- | :------------- | :------------- | :------------- | -| name | A unique name for this target. | Name | required | | -| bindgen_flags | Flags to pass directly to the bindgen executable. See https://rust-lang.github.io/rust-bindgen/ for details. | List of strings | optional | `[]` | -| cc_lib | The cc_library that contains the `.h` file. This is used to find the transitive includes. | Label | required | | -| clang_flags | Flags to pass directly to the clang executable. | List of strings | optional | `[]` | -| header | The `.h` file to generate bindings for. | Label | required | | -| merge_cc_lib_objects_into_rlib | When True, objects from `cc_lib` will be copied into the `rlib` archive produced by the rust_library that depends on this `rust_bindgen` rule (using `BuildInfo` provider) | Boolean | optional | `True` | -| wrap_static_fns | Whether to create a separate .c file for static fns. Requires nightly toolchain, and a header that actually needs this feature (otherwise bindgen won't generate the file and Bazel complains). | Boolean | optional | `False` | - - - - -## rust_bindgen_toolchain - -
-rust_bindgen_toolchain(name, bindgen, clang, default_rustfmt, libclang, libstdcxx)
-
- -The tools required for the `rust_bindgen` rule. - -This rule depends on the [`bindgen`](https://crates.io/crates/bindgen) binary crate, and it -in turn depends on both a clang binary and the clang library. To obtain these dependencies, -`rust_bindgen_dependencies` imports bindgen and its dependencies. - -```python -load("@rules_rust//bindgen:defs.bzl", "rust_bindgen_toolchain") - -rust_bindgen_toolchain( - name = "bindgen_toolchain_impl", - bindgen = "//my/rust:bindgen", - clang = "//my/clang:clang", - libclang = "//my/clang:libclang.so", - libstdcxx = "//my/cpp:libstdc++", -) - -toolchain( - name = "bindgen_toolchain", - toolchain = "bindgen_toolchain_impl", - toolchain_type = "@rules_rust//bindgen:toolchain_type", -) -``` - -This toolchain will then need to be registered in the current `WORKSPACE`. -For additional information, see the [Bazel toolchains documentation](https://docs.bazel.build/versions/master/toolchains.html). - -**ATTRIBUTES** - - -| Name | Description | Type | Mandatory | Default | -| :------------- | :------------- | :------------- | :------------- | :------------- | -| name | A unique name for this target. | Name | required | | -| bindgen | The label of a `bindgen` executable. | Label | optional | `None` | -| clang | The label of a `clang` executable. | Label | optional | `None` | -| default_rustfmt | If set, `rust_bindgen` targets will always format generated sources with `rustfmt`. | Boolean | optional | `True` | -| libclang | A cc_library that provides bindgen's runtime dependency on libclang. | Label | optional | `None` | -| libstdcxx | A cc_library that satisfies libclang's libstdc++ dependency. This is used to make the execution of clang hermetic. If None, system libraries will be used instead. | Label | optional | `None` | - - ## rust_clippy @@ -566,50 +473,6 @@ Running `bazel test //hello_lib:hello_lib_doc_test` will run all documentation t | proc_macro_deps | List of `rust_proc_macro` targets used to help build this library target. | List of labels | optional | `[]` | - - -## rust_grpc_library - -
-rust_grpc_library(name, deps, crate_name, rust_deps, rustc_flags)
-
- -Builds a Rust library crate from a set of `proto_library`s suitable for gRPC. - -Example: - -```python -load("@rules_rust//proto/protobuf:defs.bzl", "rust_grpc_library") - -proto_library( - name = "my_proto", - srcs = ["my.proto"] -) - -rust_grpc_library( - name = "rust", - deps = [":my_proto"], -) - -rust_binary( - name = "my_service", - srcs = ["my_service.rs"], - deps = [":rust"], -) -``` - -**ATTRIBUTES** - - -| Name | Description | Type | Mandatory | Default | -| :------------- | :------------- | :------------- | :------------- | :------------- | -| name | A unique name for this target. | Name | required | | -| deps | List of proto_library dependencies that will be built. One crate for each proto_library will be created with the corresponding gRPC stubs. | List of labels | required | | -| crate_name | Crate name to use for this target.

This must be a valid Rust identifier, i.e. it may contain only alphanumeric characters and underscores. Defaults to the target name, with any hyphens replaced by underscores. | String | optional | `""` | -| rust_deps | The crates the generated library depends on. | List of labels | optional | `[]` | -| rustc_flags | List of compiler flags passed to `rustc`.

These strings are subject to Make variable expansion for predefined source/output path variables like `$location`, `$execpath`, and `$rootpath`. This expansion is useful if you wish to pass a generated file of arguments to rustc: `@$(location //package:target)`. | List of strings | optional | `[]` | - - ## rust_library @@ -794,81 +657,6 @@ Builds a Rust proc-macro crate. | version | A version to inject in the cargo environment variable. | String | optional | `"0.0.0"` | - - -## rust_prost_toolchain - -
-rust_prost_toolchain(name, include_transitive_deps, prost_opts, prost_plugin, prost_plugin_flag,
-                     prost_runtime, prost_types, proto_compiler, tonic_opts, tonic_plugin,
-                     tonic_plugin_flag, tonic_runtime)
-
- -Rust Prost toolchain rule. - -**ATTRIBUTES** - - -| Name | Description | Type | Mandatory | Default | -| :------------- | :------------- | :------------- | :------------- | :------------- | -| name | A unique name for this target. | Name | required | | -| include_transitive_deps | Whether to include transitive dependencies. If set to True, all transitive dependencies will directly accessible by the dependent crate. | Boolean | optional | `False` | -| prost_opts | Additional options to add to Prost. | List of strings | optional | `[]` | -| prost_plugin | Additional plugins to add to Prost. | Label | required | | -| prost_plugin_flag | Prost plugin flag format. (e.g. `--plugin=protoc-gen-prost=%s`) | String | optional | `"--plugin=protoc-gen-prost=%s"` | -| prost_runtime | The Prost runtime crates to use. | Label | required | | -| prost_types | The Prost types crates to use. | Label | required | | -| proto_compiler | The protoc compiler to use. Note that this attribute is deprecated - prefer to use --incompatible_enable_proto_toolchain_resolution. | Label | optional | `None` | -| tonic_opts | Additional options to add to Tonic. | List of strings | optional | `[]` | -| tonic_plugin | Additional plugins to add to Tonic. | Label | optional | `None` | -| tonic_plugin_flag | Tonic plugin flag format. (e.g. `--plugin=protoc-gen-tonic=%s`)) | String | optional | `"--plugin=protoc-gen-tonic=%s"` | -| tonic_runtime | The Tonic runtime crates to use. | Label | optional | `None` | - - - - -## rust_proto_library - -
-rust_proto_library(name, deps, crate_name, rust_deps, rustc_flags)
-
- -Builds a Rust library crate from a set of `proto_library`s. - -Example: - -```python -load("@rules_rust//proto/protobuf:defs.bzl", "rust_proto_library") - -proto_library( - name = "my_proto", - srcs = ["my.proto"] -) - -rust_proto_library( - name = "rust", - deps = [":my_proto"], -) - -rust_binary( - name = "my_proto_binary", - srcs = ["my_proto_binary.rs"], - deps = [":rust"], -) -``` - -**ATTRIBUTES** - - -| Name | Description | Type | Mandatory | Default | -| :------------- | :------------- | :------------- | :------------- | :------------- | -| name | A unique name for this target. | Name | required | | -| deps | List of proto_library dependencies that will be built. One crate for each proto_library will be created with the corresponding stubs. | List of labels | required | | -| crate_name | Crate name to use for this target.

This must be a valid Rust identifier, i.e. it may contain only alphanumeric characters and underscores. Defaults to the target name, with any hyphens replaced by underscores. | String | optional | `""` | -| rust_deps | The crates the generated library depends on. | List of labels | optional | `[]` | -| rustc_flags | List of compiler flags passed to `rustc`.

These strings are subject to Make variable expansion for predefined source/output path variables like `$location`, `$execpath`, and `$rootpath`. This expansion is useful if you wish to pass a generated file of arguments to rustc: `@$(location //package:target)`. | List of strings | optional | `[]` | - - ## rust_shared_library @@ -1235,79 +1023,6 @@ See `@rules_rust//rust:repositories.bzl` for examples of defining the `@rust_cpu | target_triple | The platform triple for the toolchains target environment. For more details see: https://docs.bazel.build/versions/master/skylark/rules.html#configurations | String | optional | `""` | - - -## rust_wasm_bindgen - -
-rust_wasm_bindgen(name, bindgen_flags, target, target_arch, wasm_file)
-
- -Generates javascript and typescript bindings for a webassembly module using [wasm-bindgen][ws]. - -[ws]: https://rustwasm.github.io/docs/wasm-bindgen/ - -An example of this rule in use can be seen at [@rules_rust//examples/wasm](../examples/wasm) - -**ATTRIBUTES** - - -| Name | Description | Type | Mandatory | Default | -| :------------- | :------------- | :------------- | :------------- | :------------- | -| name | A unique name for this target. | Name | required | | -| bindgen_flags | Flags to pass directly to the bindgen executable. See https://github.com/rustwasm/wasm-bindgen/ for details. | List of strings | optional | `[]` | -| target | The type of output to generate. See https://rustwasm.github.io/wasm-bindgen/reference/deployment.html for details. | String | optional | `"bundler"` | -| target_arch | The target architecture to use for the wasm-bindgen command line option. | String | optional | `"wasm32"` | -| wasm_file | The `.wasm` file or crate to generate bindings for. | Label | required | | - - - - -## rust_wasm_bindgen_toolchain - -
-rust_wasm_bindgen_toolchain(name, bindgen)
-
- -The tools required for the `rust_wasm_bindgen` rule. - -In cases where users want to control or change the version of `wasm-bindgen` used by [rust_wasm_bindgen](#rust_wasm_bindgen), -a unique toolchain can be created as in the example below: - -```python -load("@rules_rust//bindgen:bindgen.bzl", "rust_bindgen_toolchain") - -rust_bindgen_toolchain( - bindgen = "//3rdparty/crates:wasm_bindgen_cli__bin", -) - -toolchain( - name = "wasm_bindgen_toolchain", - toolchain = "wasm_bindgen_toolchain_impl", - toolchain_type = "@rules_rust//wasm_bindgen:toolchain_type", -) -``` - -Now that you have your own toolchain, you need to register it by -inserting the following statement in your `WORKSPACE` file: - -```python -register_toolchains("//my/toolchains:wasm_bindgen_toolchain") -``` - -For additional information, see the [Bazel toolchains documentation][toolchains]. - -[toolchains]: https://docs.bazel.build/versions/master/toolchains.html - -**ATTRIBUTES** - - -| Name | Description | Type | Mandatory | Default | -| :------------- | :------------- | :------------- | :------------- | :------------- | -| name | A unique name for this target. | Name | required | | -| bindgen | The label of a `wasm-bindgen-cli` executable. | Label | optional | `None` | - - ## rustfmt_test @@ -1417,26 +1132,6 @@ A provider containing information about a Crate's dependencies. | transitive_proc_macro_data | depset[File]: Data of all transitive proc-macro dependencies, and non-macro dependencies of those macros. | - - -## RustWasmBindgenInfo - -
-RustWasmBindgenInfo(js, ts, wasm)
-
- -Info about wasm-bindgen outputs. - -**FIELDS** - - -| Name | Description | -| :------------- | :------------- | -| js | Depset[File]: The Javascript files produced by `wasm-bindgen`. | -| ts | Depset[File]: The Typescript files produced by `wasm-bindgen`. | -| wasm | File: The `.wasm` file generated by `wasm-bindgen`. | - - ## StdLibInfo @@ -1659,183 +1354,6 @@ Assemble a remote rust_analyzer_toolchain target based on the given params. str: The name of a registerable rust_analyzer_toolchain. - - -## rust_bindgen_dependencies - -
-rust_bindgen_dependencies()
-
- -Declare dependencies needed for bindgen. - - -**RETURNS** - -list[struct(repo=str, is_dev_dep=bool)]: A list of the repositories - defined by this macro. - - - - -## rust_bindgen_library - -
-rust_bindgen_library(name, header, cc_lib, bindgen_flags, bindgen_features, clang_flags,
-                     wrap_static_fns, kwargs)
-
- -Generates a rust source file for `header`, and builds a rust_library. - -Arguments are the same as `rust_bindgen`, and `kwargs` are passed directly to rust_library. - - -**PARAMETERS** - - -| Name | Description | Default Value | -| :------------- | :------------- | :------------- | -| name | A unique name for this target. | none | -| header | The label of the .h file to generate bindings for. | none | -| cc_lib | The label of the cc_library that contains the .h file. This is used to find the transitive includes. | none | -| bindgen_flags | Flags to pass directly to the bindgen executable. See https://rust-lang.github.io/rust-bindgen/ for details. | `None` | -| bindgen_features | The `features` attribute for the `rust_bindgen` target. | `None` | -| clang_flags | Flags to pass directly to the clang executable. | `None` | -| wrap_static_fns | Whether to create a separate .c file for static fns. Requires nightly toolchain, and a header that actually needs this feature (otherwise bindgen won't generate the file and Bazel complains", | `False` | -| kwargs | Arguments to forward to the underlying `rust_library` rule. | none | - - - - -## rust_bindgen_register_toolchains - -
-rust_bindgen_register_toolchains(register_toolchains)
-
- -Registers the default toolchains for the `rules_rust` [bindgen][bg] rules. - -[bg]: https://rust-lang.github.io/rust-bindgen/ - - -**PARAMETERS** - - -| Name | Description | Default Value | -| :------------- | :------------- | :------------- | -| register_toolchains | Whether or not to register toolchains. | `True` | - - - - -## rust_prost_dependencies - -
-rust_prost_dependencies(bzlmod)
-
- -Declares repositories needed for prost. - -**PARAMETERS** - - -| Name | Description | Default Value | -| :------------- | :------------- | :------------- | -| bzlmod | Whether bzlmod is enabled. | `False` | - -**RETURNS** - -list[struct(repo=str, is_dev_dep=bool)]: A list of the repositories - defined by this macro. - - - - -## rust_prost_library - -
-rust_prost_library(name, kwargs)
-
- -A rule for generating a Rust library using Prost. - -**PARAMETERS** - - -| Name | Description | Default Value | -| :------------- | :------------- | :------------- | -| name | The name of the target. | none | -| kwargs | Additional keyword arguments for the underlying `rust_prost_library` rule. | none | - - - - -## rust_prost_transitive_repositories - -
-rust_prost_transitive_repositories()
-
- -Load transitive dependencies of the `@rules_rust//proto/protobuf` rules. - -This macro should be called immediately after the `rust_protobuf_dependencies` macro. - - - - - -## rust_proto_protobuf_dependencies - -
-rust_proto_protobuf_dependencies(bzlmod)
-
- -Sets up dependencies for rules_rust's proto support. - -**PARAMETERS** - - -| Name | Description | Default Value | -| :------------- | :------------- | :------------- | -| bzlmod | Whether this function is being called from a bzlmod context rather than a workspace context. | `False` | - -**RETURNS** - -A list of structs containing information about root module deps to report to bzlmod's extension_metadata. - - - - -## rust_proto_protobuf_register_toolchains - -
-rust_proto_protobuf_register_toolchains(register_toolchains)
-
- -Register toolchains for proto compilation. - -**PARAMETERS** - - -| Name | Description | Default Value | -| :------------- | :------------- | :------------- | -| register_toolchains |

-

| `True` | - - - - -## rust_proto_protobuf_transitive_repositories - -
-rust_proto_protobuf_transitive_repositories()
-
- -Load transitive dependencies of the `@rules_rust//proto/protobuf` rules. - -This macro should be called immediately after the `rust_protobuf_dependencies` macro. - - - ## rust_register_toolchains @@ -2060,47 +1578,6 @@ Assembles a remote repository for the given toolchain params, produces a proxy r str: The name of the registerable toolchain created by this rule. - - -## rust_wasm_bindgen_dependencies - -
-rust_wasm_bindgen_dependencies()
-
- -Declare dependencies needed for the `rules_rust` [wasm-bindgen][wb] rules. - -[wb]: https://github.com/rustwasm/wasm-bindgen - - - -**RETURNS** - -list[struct(repo=str, is_dev_dep=bool)]: A list of the repositories - defined by this macro. - - - - -## rust_wasm_bindgen_register_toolchains - -
-rust_wasm_bindgen_register_toolchains(register_toolchains)
-
- -Registers the default toolchains for the `rules_rust` [wasm-bindgen][wb] rules. - -[wb]: https://github.com/rustwasm/wasm-bindgen - - -**PARAMETERS** - - -| Name | Description | Default Value | -| :------------- | :------------- | :------------- | -| register_toolchains | Whether or not to register toolchains. | `True` | - - ## rust_analyzer_aspect diff --git a/docs/src/rules.md b/docs/src/rules.md index 40abdd8602..1869b9e143 100644 --- a/docs/src/rules.md +++ b/docs/src/rules.md @@ -14,7 +14,8 @@ ## 3rd party rules - [rust_bindgen](rust_bindgen.md): rules for generating C++ bindings. -- [rust_proto](rust_proto.md): rules for generating [protobuf](https://developers.google.com/protocol-buffers) and [gRPC](https://grpc.io) stubs. +- [rust_prost](rust_prost.md): rules for generating [protobuf](https://developers.google.com/protocol-buffers) and [gRPC](https://grpc.io) stubs using [prost](https://github.com/tokio-rs/prost). +- [rust_protobuf](rust_protobuf.md): rules for generating [protobuf](https://developers.google.com/protocol-buffers) and [gRPC](https://grpc.io) stubs with [rust-protobuf](https://github.com/stepancheg/rust-protobuf/) - [rust_wasm_bindgen](rust_wasm_bindgen.md): rules for generating [WebAssembly](https://www.rust-lang.org/what/wasm) bindings. ## Full API diff --git a/docs/src/rust_bindgen.md b/docs/src/rust_bindgen.md index 2c139530cc..68295adbee 100644 --- a/docs/src/rust_bindgen.md +++ b/docs/src/rust_bindgen.md @@ -1,14 +1,6 @@ -# Rust Bindgen -* [rust_bindgen_library](#rust_bindgen_library) -* [rust_bindgen](#rust_bindgen) -* [rust_bindgen_toolchain](#rust_bindgen_toolchain) -* [rust_bindgen_dependencies](#rust_bindgen_dependencies) -* [rust_bindgen_register_toolchains](#rust_bindgen_register_toolchains) - - -## Overview +# rules_rust_ext bindgen These rules are for using [Bindgen][bindgen] to generate [Rust][rust] bindings to C (and some C++) libraries. @@ -17,19 +9,19 @@ These rules are for using [Bindgen][bindgen] to generate [Rust][rust] bindings t See the [bindgen example](https://github.com/bazelbuild/rules_rust/tree/main/examples/bindgen/BUILD.bazel) for a more complete example of use. -### Setup +## Setup To use the Rust bindgen rules, add the following to your `WORKSPACE` file to add the external repositories for the Rust bindgen toolchain (in addition to the [rust rules setup](https://bazelbuild.github.io/rules_rust/#setup)): ```python -load("@rules_rust//bindgen:repositories.bzl", "rust_bindgen_dependencies", "rust_bindgen_register_toolchains") +load("@rules_rust_ext//bindgen:repositories.bzl", "rust_bindgen_dependencies", "rust_bindgen_register_toolchains") rust_bindgen_dependencies() rust_bindgen_register_toolchains() -load("@rules_rust//bindgen:transitive_repositories.bzl", "rust_bindgen_transitive_dependencies") +load("@rules_rust_ext//bindgen:transitive_repositories.bzl", "rust_bindgen_transitive_dependencies") rust_bindgen_transitive_dependencies() ``` @@ -42,11 +34,14 @@ toolchains following the instructions for [rust_bindgen_toolchain](#rust_bindgen [llvm_proj]: https://github.com/llvm/llvm-project [cra_uni]: https://bazelbuild.github.io/rules_rust/crate_universe.html ---- - ---- +## Rules +- [rust_bindgen](#rust_bindgen) +- [rust_bindgen_library](#rust_bindgen_library) +- [rust_bindgen_toolchain](#rust_bindgen_toolchain) +--- +--- @@ -88,7 +83,7 @@ in turn depends on both a clang binary and the clang library. To obtain these de `rust_bindgen_dependencies` imports bindgen and its dependencies. ```python -load("@rules_rust//bindgen:defs.bzl", "rust_bindgen_toolchain") +load("@rules_rust_ext//bindgen:defs.bzl", "rust_bindgen_toolchain") rust_bindgen_toolchain( name = "bindgen_toolchain_impl", @@ -101,7 +96,7 @@ rust_bindgen_toolchain( toolchain( name = "bindgen_toolchain", toolchain = "bindgen_toolchain_impl", - toolchain_type = "@rules_rust//bindgen:toolchain_type", + toolchain_type = "@rules_rust_ext//bindgen:toolchain_type", ) ``` @@ -121,23 +116,6 @@ For additional information, see the [Bazel toolchains documentation](https://doc | libstdcxx | A cc_library that satisfies libclang's libstdc++ dependency. This is used to make the execution of clang hermetic. If None, system libraries will be used instead. | Label | optional | `None` | - - -## rust_bindgen_dependencies - -
-rust_bindgen_dependencies()
-
- -Declare dependencies needed for bindgen. - - -**RETURNS** - -list[struct(repo=str, is_dev_dep=bool)]: A list of the repositories - defined by this macro. - - ## rust_bindgen_library @@ -167,24 +145,3 @@ Arguments are the same as `rust_bindgen`, and `kwargs` are passed directly to ru | kwargs | Arguments to forward to the underlying `rust_library` rule. | none | - - -## rust_bindgen_register_toolchains - -
-rust_bindgen_register_toolchains(register_toolchains)
-
- -Registers the default toolchains for the `rules_rust` [bindgen][bg] rules. - -[bg]: https://rust-lang.github.io/rust-bindgen/ - - -**PARAMETERS** - - -| Name | Description | Default Value | -| :------------- | :------------- | :------------- | -| register_toolchains | Whether or not to register toolchains. | `True` | - - diff --git a/docs/src/rust_prost.md b/docs/src/rust_prost.md new file mode 100644 index 0000000000..5512ab610a --- /dev/null +++ b/docs/src/rust_prost.md @@ -0,0 +1,54 @@ + + +Rules for building proto libraries in Rust. + + + +## rust_prost_toolchain + +
+rust_prost_toolchain(name, include_transitive_deps, prost_opts, prost_plugin, prost_plugin_flag,
+                     prost_runtime, prost_types, proto_compiler, tonic_opts, tonic_plugin,
+                     tonic_plugin_flag, tonic_runtime)
+
+ +Rust Prost toolchain rule. + +**ATTRIBUTES** + + +| Name | Description | Type | Mandatory | Default | +| :------------- | :------------- | :------------- | :------------- | :------------- | +| name | A unique name for this target. | Name | required | | +| include_transitive_deps | Whether to include transitive dependencies. If set to True, all transitive dependencies will directly accessible by the dependent crate. | Boolean | optional | `False` | +| prost_opts | Additional options to add to Prost. | List of strings | optional | `[]` | +| prost_plugin | Additional plugins to add to Prost. | Label | required | | +| prost_plugin_flag | Prost plugin flag format. (e.g. `--plugin=protoc-gen-prost=%s`) | String | optional | `"--plugin=protoc-gen-prost=%s"` | +| prost_runtime | The Prost runtime crates to use. | Label | required | | +| prost_types | The Prost types crates to use. | Label | required | | +| proto_compiler | The protoc compiler to use. Note that this attribute is deprecated - prefer to use --incompatible_enable_proto_toolchain_resolution. | Label | optional | `None` | +| tonic_opts | Additional options to add to Tonic. | List of strings | optional | `[]` | +| tonic_plugin | Additional plugins to add to Tonic. | Label | optional | `None` | +| tonic_plugin_flag | Tonic plugin flag format. (e.g. `--plugin=protoc-gen-tonic=%s`)) | String | optional | `"--plugin=protoc-gen-tonic=%s"` | +| tonic_runtime | The Tonic runtime crates to use. | Label | optional | `None` | + + + + +## rust_prost_library + +
+rust_prost_library(name, kwargs)
+
+ +A rule for generating a Rust library using Prost. + +**PARAMETERS** + + +| Name | Description | Default Value | +| :------------- | :------------- | :------------- | +| name | The name of the target. | none | +| kwargs | Additional keyword arguments for the underlying `rust_prost_library` rule. | none | + + diff --git a/docs/src/rust_proto.md b/docs/src/rust_proto.md index 325fbba72d..e6022e2174 100644 --- a/docs/src/rust_proto.md +++ b/docs/src/rust_proto.md @@ -18,7 +18,7 @@ These build rules are used for building [protobufs][protobuf]/[gRPC][grpc] in [R There are two rule sets. The first ruleset defines the `rust_prost_library` which generates Rust code using the [`prost`] and [`tonic`] dependencies. The second ruleset defines the `rust_proto_library` and -`rust_grpc_library` rules which generate Rust code using the [`rust-protobuf`] dependencies. +`rust_grpc_library` rules which generate Rust code using the [`rust-protobuf`] dependencies. [rust]: http://www.rust-lang.org/ [protobuf]: https://developers.google.com/protocol-buffers/ @@ -30,11 +30,11 @@ See the [protobuf example](../examples/proto) for a more complete example of use ### Prost Setup ```python -load("@rules_rust//proto/prost:repositories.bzl", "rust_prost_dependencies") +load("@rules_rust_ext//prost:repositories.bzl", "rust_prost_dependencies") rust_prost_dependencies() -load("@rules_rust//proto/prost:transitive_repositories.bzl", "rust_prost_transitive_repositories") +load("@rules_rust_ext//prost:transitive_repositories.bzl", "rust_prost_transitive_repositories") rust_prost_transitive_repositories() ``` @@ -74,7 +74,7 @@ crates_repository( patches = [ # Note: You will need to use this patch until a version greater than `0.2.2` of # `protoc-gen-prost` is released. - "@rules_rust//proto/prost/private/3rdparty/patches:protoc-gen-prost.patch", + "@rules_rust_ext//prost/private/3rdparty/patches:protoc-gen-prost.patch", ], )], "protoc-gen-tonic": [crate.annotation( @@ -109,7 +109,7 @@ You can then define a toolchain with the `rust_prost_toolchain` rule which uses defined above. For example: ```python -load("@rules_rust//proto/prost:defs.bzl", "rust_prost_toolchain") +load("@rules_rust_ext//prost:defs.bzl", "rust_prost_toolchain") load("@rules_rust//rust:defs.bzl", "rust_library_group") rust_library_group( @@ -140,7 +140,7 @@ rust_prost_toolchain( toolchain( name = "prost_toolchain", toolchain = "prost_toolchain_impl", - toolchain_type = "@rules_rust//proto/prost:toolchain_type", + toolchain_type = "@rules_rust_ext//prost:toolchain_type", ) ``` @@ -156,13 +156,13 @@ To use the Rust proto rules, add the following to your `WORKSPACE` file to add t external repositories for the Rust proto toolchain (in addition to the [rust rules setup](..)): ```python -load("@rules_rust//proto/protobuf:repositories.bzl", "rust_proto_protobuf_dependencies", "rust_proto_protobuf_register_toolchains") +load("@rules_rust_ext//protobuf:repositories.bzl", "rust_proto_protobuf_dependencies", "rust_proto_protobuf_register_toolchains") rust_proto_protobuf_dependencies() rust_proto_protobuf_register_toolchains() -load("@rules_rust//proto/protobuf:transitive_repositories.bzl", "rust_proto_protobuf_transitive_repositories") +load("@rules_rust_ext//protobuf:transitive_repositories.bzl", "rust_proto_protobuf_transitive_repositories") rust_proto_protobuf_transitive_repositories() ``` @@ -189,8 +189,8 @@ complex scenario (with more dependencies), you must redefine those dependencies. To do this, once you've imported the needed dependencies (see our -[@rules_rust//proto/protobuf/3rdparty/BUILD.bazel](https://github.com/bazelbuild/rules_rust/blob/main/proto/protobuf/3rdparty/BUILD.bazel) -file to see the default dependencies), you need to create your own toolchain. +[@rules_rust_ext//protobuf/3rdparty/BUILD.bazel](https://github.com/bazelbuild/rules_rust/blob/main/proto/protobuf/3rdparty/BUILD.bazel) +file to see the default dependencies), you need to create your own toolchain. To do so you can create a BUILD file with your toolchain definition, for example: ```python @@ -209,7 +209,7 @@ rust_proto_toolchain( toolchain( name = "proto-toolchain", toolchain = ":proto-toolchain-impl", - toolchain_type = "@rules_rust//proto/protobuf:toolchain_type", + toolchain_type = "@rules_rust_ext//protobuf:toolchain_type", ) ``` @@ -266,7 +266,7 @@ Builds a Rust library crate from a set of `proto_library`s suitable for gRPC. Example: ```python -load("@rules_rust//proto/protobuf:defs.bzl", "rust_grpc_library") +load("@rules_rust_ext//protobuf:defs.bzl", "rust_grpc_library") proto_library( name = "my_proto", @@ -341,7 +341,7 @@ Builds a Rust library crate from a set of `proto_library`s. Example: ```python -load("@rules_rust//proto/protobuf:defs.bzl", "rust_proto_library") +load("@rules_rust_ext//protobuf:defs.bzl", "rust_proto_library") proto_library( name = "my_proto", @@ -422,7 +422,7 @@ A rule for generating a Rust library using Prost. rust_prost_transitive_repositories() -Load transitive dependencies of the `@rules_rust//proto/protobuf` rules. +Load transitive dependencies of the `@rules_rust_ext//protobuf` rules. This macro should be called immediately after the `rust_protobuf_dependencies` macro. @@ -476,9 +476,6 @@ Register toolchains for proto compilation. rust_proto_protobuf_transitive_repositories() -Load transitive dependencies of the `@rules_rust//proto/protobuf` rules. +Load transitive dependencies of the `@rules_rust_ext//protobuf` rules. This macro should be called immediately after the `rust_protobuf_dependencies` macro. - - - diff --git a/docs/src/rust_protobuf.md b/docs/src/rust_protobuf.md new file mode 100644 index 0000000000..2cadde3c1d --- /dev/null +++ b/docs/src/rust_protobuf.md @@ -0,0 +1,92 @@ + + +Rust Protobuf Rules + + + +## rust_grpc_library + +
+rust_grpc_library(name, deps, crate_name, rust_deps, rustc_flags)
+
+ +Builds a Rust library crate from a set of `proto_library`s suitable for gRPC. + +Example: + +```python +load("@rules_rust_ext//protobuf:defs.bzl", "rust_grpc_library") + +proto_library( + name = "my_proto", + srcs = ["my.proto"] +) + +rust_grpc_library( + name = "rust", + deps = [":my_proto"], +) + +rust_binary( + name = "my_service", + srcs = ["my_service.rs"], + deps = [":rust"], +) +``` + +**ATTRIBUTES** + + +| Name | Description | Type | Mandatory | Default | +| :------------- | :------------- | :------------- | :------------- | :------------- | +| name | A unique name for this target. | Name | required | | +| deps | List of proto_library dependencies that will be built. One crate for each proto_library will be created with the corresponding gRPC stubs. | List of labels | required | | +| crate_name | Crate name to use for this target.

This must be a valid Rust identifier, i.e. it may contain only alphanumeric characters and underscores. Defaults to the target name, with any hyphens replaced by underscores. | String | optional | `""` | +| rust_deps | The crates the generated library depends on. | List of labels | optional | `[]` | +| rustc_flags | List of compiler flags passed to `rustc`.

These strings are subject to Make variable expansion for predefined source/output path variables like `$location`, `$execpath`, and `$rootpath`. This expansion is useful if you wish to pass a generated file of arguments to rustc: `@$(location //package:target)`. | List of strings | optional | `[]` | + + + + +## rust_proto_library + +
+rust_proto_library(name, deps, crate_name, rust_deps, rustc_flags)
+
+ +Builds a Rust library crate from a set of `proto_library`s. + +Example: + +```python +load("@rules_rust_ext//protobuf:defs.bzl", "rust_proto_library") + +proto_library( + name = "my_proto", + srcs = ["my.proto"] +) + +rust_proto_library( + name = "rust", + deps = [":my_proto"], +) + +rust_binary( + name = "my_proto_binary", + srcs = ["my_proto_binary.rs"], + deps = [":rust"], +) +``` + +**ATTRIBUTES** + + +| Name | Description | Type | Mandatory | Default | +| :------------- | :------------- | :------------- | :------------- | :------------- | +| name | A unique name for this target. | Name | required | | +| deps | List of proto_library dependencies that will be built. One crate for each proto_library will be created with the corresponding stubs. | List of labels | required | | +| crate_name | Crate name to use for this target.

This must be a valid Rust identifier, i.e. it may contain only alphanumeric characters and underscores. Defaults to the target name, with any hyphens replaced by underscores. | String | optional | `""` | +| rust_deps | The crates the generated library depends on. | List of labels | optional | `[]` | +| rustc_flags | List of compiler flags passed to `rustc`.

These strings are subject to Make variable expansion for predefined source/output path variables like `$location`, `$execpath`, and `$rootpath`. This expansion is useful if you wish to pass a generated file of arguments to rustc: `@$(location //package:target)`. | List of strings | optional | `[]` | + + diff --git a/docs/src/rust_wasm_bindgen.md b/docs/src/rust_wasm_bindgen.md index 0eb91be287..b49998d176 100644 --- a/docs/src/rust_wasm_bindgen.md +++ b/docs/src/rust_wasm_bindgen.md @@ -1,14 +1,6 @@ -# Rust Wasm Bindgen -* [rust_wasm_bindgen_dependencies](#rust_wasm_bindgen_dependencies) -* [rust_wasm_bindgen_register_toolchains](#rust_wasm_bindgen_register_toolchains) -* [rust_wasm_bindgen_toolchain](#rust_wasm_bindgen_toolchain) -* [rust_wasm_bindgen](#rust_wasm_bindgen) -* [RustWasmBindgenInfo](#RustWasmBindgenInfo) - - -## Overview +# rules_rust_ext wasm_bindgen Bazel rules for generating wasm modules for Javascript using [wasm-bindgen][wb]. @@ -18,7 +10,7 @@ To begin using the `wasm-bindgen` rules, users can load the necessary dependenci in their workspace by adding the following to their `WORKSPACE.bazel` file. ```python -load("@rules_rust//wasm_bindgen:repositories.bzl", "rust_wasm_bindgen_dependencies", "rust_wasm_bindgen_register_toolchains") +load("@rules_rust_ext//wasm_bindgen:repositories.bzl", "rust_wasm_bindgen_dependencies", "rust_wasm_bindgen_register_toolchains") rust_wasm_bindgen_dependencies() @@ -35,7 +27,7 @@ toolchains to register in the workspace. ### Interfacing with Javascript rules While it's recommended for users to mantain their own , in the -`@rules_rust//wasm_bindgen` package there exists interface sub-packages for various +`@rules_rust_ext//wasm_bindgen` package there exists interface sub-packages for various Javascript Bazel rules. E.g. `build_bazel_rules_nodejs` or `aspect_rules_js`. The rules defined there are a more convenient way to use `rust_wasm_bindgen` with the associated javascript rules due to the inclusion of additional providers. Each @@ -45,7 +37,6 @@ directory contains a `defs.bzl` file that defines the different variants of [wb]: https://github.com/rustwasm/wasm-bindgen - ## rust_wasm_bindgen @@ -86,7 +77,7 @@ In cases where users want to control or change the version of `wasm-bindgen` use a unique toolchain can be created as in the example below: ```python -load("@rules_rust//bindgen:bindgen.bzl", "rust_bindgen_toolchain") +load("@rules_rust_ext//bindgen:bindgen.bzl", "rust_bindgen_toolchain") rust_bindgen_toolchain( bindgen = "//3rdparty/crates:wasm_bindgen_cli__bin", @@ -95,7 +86,7 @@ rust_bindgen_toolchain( toolchain( name = "wasm_bindgen_toolchain", toolchain = "wasm_bindgen_toolchain_impl", - toolchain_type = "@rules_rust//wasm_bindgen:toolchain_type", + toolchain_type = "@rules_rust_ext//wasm_bindgen:toolchain_type", ) ``` @@ -139,44 +130,3 @@ Info about wasm-bindgen outputs. | wasm | File: The `.wasm` file generated by `wasm-bindgen`. | - - -## rust_wasm_bindgen_dependencies - -
-rust_wasm_bindgen_dependencies()
-
- -Declare dependencies needed for the `rules_rust` [wasm-bindgen][wb] rules. - -[wb]: https://github.com/rustwasm/wasm-bindgen - - - -**RETURNS** - -list[struct(repo=str, is_dev_dep=bool)]: A list of the repositories - defined by this macro. - - - - -## rust_wasm_bindgen_register_toolchains - -
-rust_wasm_bindgen_register_toolchains(register_toolchains)
-
- -Registers the default toolchains for the `rules_rust` [wasm-bindgen][wb] rules. - -[wb]: https://github.com/rustwasm/wasm-bindgen - - -**PARAMETERS** - - -| Name | Description | Default Value | -| :------------- | :------------- | :------------- | -| register_toolchains | Whether or not to register toolchains. | `True` | - - diff --git a/docs/symbols.bzl b/docs/symbols.bzl index 8bd44bde2c..fc7fcbc37a 100644 --- a/docs/symbols.bzl +++ b/docs/symbols.bzl @@ -2,17 +2,6 @@ to have stardoc generated documentation. """ -load( - "@rules_rust//bindgen:defs.bzl", - _rust_bindgen = "rust_bindgen", - _rust_bindgen_library = "rust_bindgen_library", - _rust_bindgen_toolchain = "rust_bindgen_toolchain", -) -load( - "@rules_rust//bindgen:repositories.bzl", - _rust_bindgen_dependencies = "rust_bindgen_dependencies", - _rust_bindgen_register_toolchains = "rust_bindgen_register_toolchains", -) load( "@rules_rust//cargo:defs.bzl", _cargo_bootstrap_repository = "cargo_bootstrap_repository", @@ -27,33 +16,6 @@ load( _crates_repository = "crates_repository", _crates_vendor = "crates_vendor", ) -load( - "@rules_rust//proto/prost:defs.bzl", - _rust_prost_library = "rust_prost_library", - _rust_prost_toolchain = "rust_prost_toolchain", -) -load( - "@rules_rust//proto/prost:repositories.bzl", - _rust_prost_dependencies = "rust_prost_dependencies", -) -load( - "@rules_rust//proto/protobuf:defs.bzl", - _rust_grpc_library = "rust_grpc_library", - _rust_proto_library = "rust_proto_library", -) -load( - "@rules_rust//proto/protobuf:repositories.bzl", - _rust_proto_protobuf_dependencies = "rust_proto_protobuf_dependencies", - _rust_proto_protobuf_register_toolchains = "rust_proto_protobuf_register_toolchains", -) -load( - "@rules_rust//proto/protobuf:toolchain.bzl", - _rust_proto_toolchain = "rust_proto_toolchain", -) -load( - "@rules_rust//proto/protobuf:transitive_repositories.bzl", - _rust_proto_protobuf_transitive_repositories = "rust_proto_protobuf_transitive_repositories", -) load( "@rules_rust//rust:defs.bzl", _capture_clippy_output = "capture_clippy_output", @@ -111,13 +73,51 @@ load( _incompatible_flag = "incompatible_flag", ) load( - "@rules_rust//wasm_bindgen:defs.bzl", + "@rules_rust_ext//bindgen:defs.bzl", + _rust_bindgen = "rust_bindgen", + _rust_bindgen_library = "rust_bindgen_library", + _rust_bindgen_toolchain = "rust_bindgen_toolchain", +) +load( + "@rules_rust_ext//bindgen:repositories.bzl", + _rust_bindgen_dependencies = "rust_bindgen_dependencies", + _rust_bindgen_register_toolchains = "rust_bindgen_register_toolchains", +) +load( + "@rules_rust_ext//prost:defs.bzl", + _rust_prost_library = "rust_prost_library", + _rust_prost_toolchain = "rust_prost_toolchain", +) +load( + "@rules_rust_ext//prost:repositories.bzl", + _rust_prost_dependencies = "rust_prost_dependencies", +) +load( + "@rules_rust_ext//protobuf:defs.bzl", + _rust_grpc_library = "rust_grpc_library", + _rust_proto_library = "rust_proto_library", +) +load( + "@rules_rust_ext//protobuf:repositories.bzl", + _rust_proto_protobuf_dependencies = "rust_proto_protobuf_dependencies", + _rust_proto_protobuf_register_toolchains = "rust_proto_protobuf_register_toolchains", +) +load( + "@rules_rust_ext//protobuf:toolchain.bzl", + _rust_proto_toolchain = "rust_proto_toolchain", +) +load( + "@rules_rust_ext//protobuf:transitive_repositories.bzl", + _rust_proto_protobuf_transitive_repositories = "rust_proto_protobuf_transitive_repositories", +) +load( + "@rules_rust_ext//wasm_bindgen:defs.bzl", _RustWasmBindgenInfo = "RustWasmBindgenInfo", _rust_wasm_bindgen = "rust_wasm_bindgen", _rust_wasm_bindgen_toolchain = "rust_wasm_bindgen_toolchain", ) load( - "@rules_rust//wasm_bindgen:repositories.bzl", + "@rules_rust_ext//wasm_bindgen:repositories.bzl", _rust_wasm_bindgen_dependencies = "rust_wasm_bindgen_dependencies", _rust_wasm_bindgen_register_toolchains = "rust_wasm_bindgen_register_toolchains", ) diff --git a/examples/.bazelignore b/examples/.bazelignore index 5c00b61cb9..79bbe13c03 100644 --- a/examples/.bazelignore +++ b/examples/.bazelignore @@ -1,5 +1,9 @@ android bazel_env +bazel-bin +bazel-examples +bazel-out +bazel-testlogs bzlmod cargo_manifest_dir/external_crate crate_universe diff --git a/examples/WORKSPACE.bazel b/examples/WORKSPACE.bazel index d1db73fe8e..52d360b51e 100644 --- a/examples/WORKSPACE.bazel +++ b/examples/WORKSPACE.bazel @@ -24,16 +24,6 @@ load("@rules_rust//tools/rust_analyzer:deps.bzl", "rust_analyzer_dependencies") rust_analyzer_dependencies() -load("@rules_rust//bindgen:repositories.bzl", "rust_bindgen_dependencies", "rust_bindgen_register_toolchains") - -rust_bindgen_dependencies() - -rust_bindgen_register_toolchains() - -load("@rules_rust//bindgen:transitive_repositories.bzl", "rust_bindgen_transitive_dependencies") - -rust_bindgen_transitive_dependencies() - load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") # We need to load rules_java before anything proto-related happens because otherwise it will pull in its own rules_java which isn't compatible with rules_jvm_external. @@ -45,38 +35,6 @@ http_archive( ], ) -load("@rules_rust//proto/protobuf:repositories.bzl", "rust_proto_protobuf_dependencies", "rust_proto_protobuf_register_toolchains") - -rust_proto_protobuf_dependencies() - -rust_proto_protobuf_register_toolchains() - -load("@rules_rust//proto/protobuf:transitive_repositories.bzl", "rust_proto_protobuf_transitive_repositories") - -rust_proto_protobuf_transitive_repositories() - -load("@rules_rust//wasm_bindgen:repositories.bzl", "rust_wasm_bindgen_dependencies", "rust_wasm_bindgen_register_toolchains") - -rust_wasm_bindgen_dependencies() - -rust_wasm_bindgen_register_toolchains() - -load("@rules_rust//wasm_bindgen/rules_nodejs:repositories.bzl", "nodejs_rust_wasm_bindgen_dependencies") - -nodejs_rust_wasm_bindgen_dependencies() - -load("@rules_rust//wasm_bindgen/rules_js:repositories.bzl", "js_rust_wasm_bindgen_dependencies") - -js_rust_wasm_bindgen_dependencies() - -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) - ############################################################################### # Workspace examples ############################################################################### @@ -104,20 +62,6 @@ rust_repository_set( # Examples dependencies ############################################################################### -http_archive( - name = "build_bazel_rules_nodejs", - sha256 = "709cc0dcb51cf9028dd57c268066e5bc8f03a119ded410a13b5c3925d6e43c48", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.8.4/rules_nodejs-5.8.4.tar.gz"], -) - -load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories") - -node_repositories() - -load("@bazel_features//:deps.bzl", "bazel_features_deps") - -bazel_features_deps() - http_archive( name = "rules_foreign_cc", sha256 = "69023642d5781c68911beda769f91fcbc8ca48711db935a75da7f6536b65047f", diff --git a/examples/bzlmod/proto/MODULE.bazel b/examples/bzlmod/proto/MODULE.bazel index a91b6fce6f..6071a598b5 100644 --- a/examples/bzlmod/proto/MODULE.bazel +++ b/examples/bzlmod/proto/MODULE.bazel @@ -69,7 +69,7 @@ use_repo(rust, "rust_toolchains") register_toolchains("@rust_toolchains//:all") # Proto toolchain -register_toolchains("@rules_rust//proto/protobuf:default-proto-toolchain") +register_toolchains("@rules_rust_ext//protobuf:default-proto-toolchain") # Custom Prost toolchain register_toolchains("@//build/prost_toolchain") diff --git a/examples/bzlmod/proto/README.md b/examples/bzlmod/proto/README.md index 8ce7fc6125..85baea8c9d 100644 --- a/examples/bzlmod/proto/README.md +++ b/examples/bzlmod/proto/README.md @@ -2,7 +2,7 @@ This example shows how to build a gRPC server and client in Rust with Bazel. There is a Cargo Workspace configuration and a Bazelmod configuration. Furthermore, -all binary targets apply optimization from the [compiler optimization example](../03-comp-opt). +all binary targets apply optimization from the [compiler optimization example](../03-comp-opt). To run the example with Cargo, open one terminal and start the server with: @@ -28,16 +28,16 @@ Client: ## Setup -The Prost and Tonic rules do not specify a default toolchain in order to avoid mismatched dependency issues. +The Prost and Tonic rules do not specify a default toolchain in order to avoid mismatched dependency issues. While the Tonic toolchain works out of the box when its dependencies are matched, however, Prost requires a custom toolchain that you have to define. -The setup requires three steps to complete: +The setup requires three steps to complete: 1. Configure rules and dependencies in MODULE.bazel 2. Configure a custom Prost toolchain 3. Register custom Prost toolchain. -To keep the build hermetic, we use the LLVM Clang compiler to compile all C/C++ dependencies. +To keep the build hermetic, we use the LLVM Clang compiler to compile all C/C++ dependencies. ### 1) Configure rules and dependencies @@ -52,11 +52,11 @@ bazel_dep(name = "rules_proto", version = "6.0.2") bazel_dep(name = "toolchains_protoc", version = "0.3.1") # https://registry.bazel.build/modules/protobuf bazel_dep(name = "protobuf", version = "27.1") -# rules for LLVM +# rules for LLVM # https://github.com/bazel-contrib/toolchains_llvm bazel_dep(name = "toolchains_llvm", version = "1.0.0") -# 1 Register LLVM +# 1 Register LLVM ############################################################################### # L L V M # https://github.com/bazel-contrib/toolchains_llvm/blob/master/tests/MODULE.bazel @@ -72,14 +72,14 @@ llvm.toolchain( use_repo(llvm, "llvm_toolchain", "llvm_toolchain_llvm") register_toolchains("@llvm_toolchain//:all") -# 2 Register Proto toolchain +# 2 Register Proto toolchain ############################################################################### # Proto toolchain -register_toolchains("@rules_rust//proto/protobuf:default-proto-toolchain") +register_toolchains("@rules_rust_ext//protobuf:default-proto-toolchain") # Custom Prost toolchain will be added later. See next section -# 3 Register proto / prost / tonic crates +# 3 Register proto / prost / tonic crates ############################################################################### crate = use_extension("@rules_rust//crate_universe:extension.bzl", "crate") @@ -119,7 +119,7 @@ crate.annotation( gen_binaries = ["protoc-gen-tonic"], ) -# Other Rust dependencies ... +# Other Rust dependencies ... crate.from_specs() use_repo(crate, "crates") @@ -135,7 +135,7 @@ dedicated folder, for example: `build/`. Suppose you have your BUILD.bazl file in `build/prost_toolchain/BUILD.bazel`, then add the following content: ```starlark -load("@rules_rust//proto/prost:defs.bzl", "rust_prost_toolchain") +load("@rules_rust_ext//prost:defs.bzl", "rust_prost_toolchain") load("@rules_rust//rust:defs.bzl", "rust_library_group") rust_library_group( @@ -166,7 +166,7 @@ rust_prost_toolchain( toolchain( name = "prost_toolchain", toolchain = "prost_toolchain_impl", - toolchain_type = "@rules_rust//proto/prost:toolchain_type", + toolchain_type = "@rules_rust_ext//prost:toolchain_type", ) ``` @@ -178,10 +178,10 @@ crate dependencies in the MODULE file. With this custom toolchain in place, the In your MODULE.bazel file, locate your toolchains and add the following entry right below the proto toolchain. ```starlark -# 2 Register Proto toolchain +# 2 Register Proto toolchain ############################################################################### # Proto toolchain -register_toolchains("@rules_rust//proto/protobuf:default-proto-toolchain") +register_toolchains("@rules_rust_ext//protobuf:default-proto-toolchain") # Custom Prost toolchain register_toolchains("@//build/prost_toolchain") @@ -197,7 +197,7 @@ bindings for a proto file, just add the target: ```starlark load("@rules_proto//proto:defs.bzl", "proto_library") -load("@rules_rust//proto/prost:defs.bzl", "rust_prost_library") +load("@rules_rust_ext//prost:defs.bzl", "rust_prost_library") # Build proto files # https://bazelbuild.github.io/rules_rust/rust_proto.html#rust_proto_library diff --git a/examples/bzlmod/proto/build/prost_toolchain/BUILD.bazel b/examples/bzlmod/proto/build/prost_toolchain/BUILD.bazel index 99dc284ccf..ef41165e62 100644 --- a/examples/bzlmod/proto/build/prost_toolchain/BUILD.bazel +++ b/examples/bzlmod/proto/build/prost_toolchain/BUILD.bazel @@ -1,5 +1,5 @@ -load("@rules_rust//proto/prost:defs.bzl", "rust_prost_toolchain") load("@rules_rust//rust:defs.bzl", "rust_library_group") +load("@rules_rust_ext//prost:defs.bzl", "rust_prost_toolchain") rust_library_group( name = "prost_runtime", @@ -28,5 +28,5 @@ rust_prost_toolchain( toolchain( name = "prost_toolchain", toolchain = "prost_toolchain_impl", - toolchain_type = "@rules_rust//proto/prost:toolchain_type", + toolchain_type = "@rules_rust_ext//prost:toolchain_type", ) diff --git a/examples/bzlmod/proto/proto_bindings/BUILD.bazel b/examples/bzlmod/proto/proto_bindings/BUILD.bazel index d2f9e24f1e..d307850959 100644 --- a/examples/bzlmod/proto/proto_bindings/BUILD.bazel +++ b/examples/bzlmod/proto/proto_bindings/BUILD.bazel @@ -1,5 +1,5 @@ load("@rules_proto//proto:defs.bzl", "proto_library") -load("@rules_rust//proto/prost:defs.bzl", "rust_prost_library") +load("@rules_rust_ext//prost:defs.bzl", "rust_prost_library") # Build proto files # https://bazelbuild.github.io/rules_rust/rust_proto.html#rust_proto_library diff --git a/examples/bzlmod/proto_with_toolchain/MODULE.bazel b/examples/bzlmod/proto_with_toolchain/MODULE.bazel index bae1a1f013..fe258ef487 100644 --- a/examples/bzlmod/proto_with_toolchain/MODULE.bazel +++ b/examples/bzlmod/proto_with_toolchain/MODULE.bazel @@ -69,7 +69,7 @@ use_repo(rust, "rust_toolchains") register_toolchains("@rust_toolchains//:all") # Proto toolchain -register_toolchains("@rules_rust//proto/protobuf:default-proto-toolchain") +register_toolchains("@rules_rust_ext//protobuf:default-proto-toolchain") # Custom Prost toolchain register_toolchains("@//build/prost_toolchain") diff --git a/examples/bzlmod/proto_with_toolchain/README.md b/examples/bzlmod/proto_with_toolchain/README.md index 8ce7fc6125..85baea8c9d 100644 --- a/examples/bzlmod/proto_with_toolchain/README.md +++ b/examples/bzlmod/proto_with_toolchain/README.md @@ -2,7 +2,7 @@ This example shows how to build a gRPC server and client in Rust with Bazel. There is a Cargo Workspace configuration and a Bazelmod configuration. Furthermore, -all binary targets apply optimization from the [compiler optimization example](../03-comp-opt). +all binary targets apply optimization from the [compiler optimization example](../03-comp-opt). To run the example with Cargo, open one terminal and start the server with: @@ -28,16 +28,16 @@ Client: ## Setup -The Prost and Tonic rules do not specify a default toolchain in order to avoid mismatched dependency issues. +The Prost and Tonic rules do not specify a default toolchain in order to avoid mismatched dependency issues. While the Tonic toolchain works out of the box when its dependencies are matched, however, Prost requires a custom toolchain that you have to define. -The setup requires three steps to complete: +The setup requires three steps to complete: 1. Configure rules and dependencies in MODULE.bazel 2. Configure a custom Prost toolchain 3. Register custom Prost toolchain. -To keep the build hermetic, we use the LLVM Clang compiler to compile all C/C++ dependencies. +To keep the build hermetic, we use the LLVM Clang compiler to compile all C/C++ dependencies. ### 1) Configure rules and dependencies @@ -52,11 +52,11 @@ bazel_dep(name = "rules_proto", version = "6.0.2") bazel_dep(name = "toolchains_protoc", version = "0.3.1") # https://registry.bazel.build/modules/protobuf bazel_dep(name = "protobuf", version = "27.1") -# rules for LLVM +# rules for LLVM # https://github.com/bazel-contrib/toolchains_llvm bazel_dep(name = "toolchains_llvm", version = "1.0.0") -# 1 Register LLVM +# 1 Register LLVM ############################################################################### # L L V M # https://github.com/bazel-contrib/toolchains_llvm/blob/master/tests/MODULE.bazel @@ -72,14 +72,14 @@ llvm.toolchain( use_repo(llvm, "llvm_toolchain", "llvm_toolchain_llvm") register_toolchains("@llvm_toolchain//:all") -# 2 Register Proto toolchain +# 2 Register Proto toolchain ############################################################################### # Proto toolchain -register_toolchains("@rules_rust//proto/protobuf:default-proto-toolchain") +register_toolchains("@rules_rust_ext//protobuf:default-proto-toolchain") # Custom Prost toolchain will be added later. See next section -# 3 Register proto / prost / tonic crates +# 3 Register proto / prost / tonic crates ############################################################################### crate = use_extension("@rules_rust//crate_universe:extension.bzl", "crate") @@ -119,7 +119,7 @@ crate.annotation( gen_binaries = ["protoc-gen-tonic"], ) -# Other Rust dependencies ... +# Other Rust dependencies ... crate.from_specs() use_repo(crate, "crates") @@ -135,7 +135,7 @@ dedicated folder, for example: `build/`. Suppose you have your BUILD.bazl file in `build/prost_toolchain/BUILD.bazel`, then add the following content: ```starlark -load("@rules_rust//proto/prost:defs.bzl", "rust_prost_toolchain") +load("@rules_rust_ext//prost:defs.bzl", "rust_prost_toolchain") load("@rules_rust//rust:defs.bzl", "rust_library_group") rust_library_group( @@ -166,7 +166,7 @@ rust_prost_toolchain( toolchain( name = "prost_toolchain", toolchain = "prost_toolchain_impl", - toolchain_type = "@rules_rust//proto/prost:toolchain_type", + toolchain_type = "@rules_rust_ext//prost:toolchain_type", ) ``` @@ -178,10 +178,10 @@ crate dependencies in the MODULE file. With this custom toolchain in place, the In your MODULE.bazel file, locate your toolchains and add the following entry right below the proto toolchain. ```starlark -# 2 Register Proto toolchain +# 2 Register Proto toolchain ############################################################################### # Proto toolchain -register_toolchains("@rules_rust//proto/protobuf:default-proto-toolchain") +register_toolchains("@rules_rust_ext//protobuf:default-proto-toolchain") # Custom Prost toolchain register_toolchains("@//build/prost_toolchain") @@ -197,7 +197,7 @@ bindings for a proto file, just add the target: ```starlark load("@rules_proto//proto:defs.bzl", "proto_library") -load("@rules_rust//proto/prost:defs.bzl", "rust_prost_library") +load("@rules_rust_ext//prost:defs.bzl", "rust_prost_library") # Build proto files # https://bazelbuild.github.io/rules_rust/rust_proto.html#rust_proto_library diff --git a/examples/bzlmod/proto_with_toolchain/build/prost_toolchain/BUILD.bazel b/examples/bzlmod/proto_with_toolchain/build/prost_toolchain/BUILD.bazel index 99dc284ccf..ef41165e62 100644 --- a/examples/bzlmod/proto_with_toolchain/build/prost_toolchain/BUILD.bazel +++ b/examples/bzlmod/proto_with_toolchain/build/prost_toolchain/BUILD.bazel @@ -1,5 +1,5 @@ -load("@rules_rust//proto/prost:defs.bzl", "rust_prost_toolchain") load("@rules_rust//rust:defs.bzl", "rust_library_group") +load("@rules_rust_ext//prost:defs.bzl", "rust_prost_toolchain") rust_library_group( name = "prost_runtime", @@ -28,5 +28,5 @@ rust_prost_toolchain( toolchain( name = "prost_toolchain", toolchain = "prost_toolchain_impl", - toolchain_type = "@rules_rust//proto/prost:toolchain_type", + toolchain_type = "@rules_rust_ext//prost:toolchain_type", ) diff --git a/examples/bzlmod/proto_with_toolchain/proto_bindings/BUILD.bazel b/examples/bzlmod/proto_with_toolchain/proto_bindings/BUILD.bazel index d2f9e24f1e..d307850959 100644 --- a/examples/bzlmod/proto_with_toolchain/proto_bindings/BUILD.bazel +++ b/examples/bzlmod/proto_with_toolchain/proto_bindings/BUILD.bazel @@ -1,5 +1,5 @@ load("@rules_proto//proto:defs.bzl", "proto_library") -load("@rules_rust//proto/prost:defs.bzl", "rust_prost_library") +load("@rules_rust_ext//prost:defs.bzl", "rust_prost_library") # Build proto files # https://bazelbuild.github.io/rules_rust/rust_proto.html#rust_proto_library diff --git a/examples/env_locations/BUILD.bazel b/examples/env_locations/BUILD.bazel deleted file mode 100644 index 7dd3a4a990..0000000000 --- a/examples/env_locations/BUILD.bazel +++ /dev/null @@ -1,49 +0,0 @@ -load("@rules_rust//cargo:defs.bzl", "cargo_build_script") -load("@rules_rust//rust:defs.bzl", "rust_test") - -# generate a file -genrule( - name = "data_generator", - outs = ["generated.data"], - cmd = "echo hello > $@", -) - -_data = [ - # we should be able to read non-generated source/data files - "source.file", - # and generated files as well - "generated.data", - # we should also be able to access external binaries - # such as protoc. - "@com_google_protobuf//:protoc", -] - -cargo_build_script( - name = "build", - srcs = ["build.rs"], - build_script_env = { - "GENERATED_DATA": "$(location generated.data)", - "SOME_TOOL": "$(execpath @com_google_protobuf//:protoc)", - # both execpath and location should work - "SOURCE_FILE": "$(execpath source.file)", - }, - data = _data, -) - -rust_test( - name = "test", - srcs = [ - "main.rs", - ], - data = _data, - edition = "2018", - rustc_env = { - "GENERATED_DATA_ABS": "$(execpath generated.data)", - "GENERATED_DATA_ROOT": "$(rootpath generated.data)", - "SOME_TOOL": "$(rootpath @com_google_protobuf//:protoc)", - "SOURCE_FILE": "$(rootpath source.file)", - }, - deps = [ - ":build", - ], -) diff --git a/examples/env_locations/build.rs b/examples/env_locations/build.rs deleted file mode 100644 index d791f5d781..0000000000 --- a/examples/env_locations/build.rs +++ /dev/null @@ -1,17 +0,0 @@ -use std::{env, fs}; - -fn main() { - // our source file should be readable - let path = env::var("SOURCE_FILE").unwrap(); - let generated_data = fs::read_to_string(&path).unwrap(); - assert_eq!(generated_data, "source\n"); - - // our generated data file should be readable - let path = env::var("GENERATED_DATA").unwrap(); - let generated_data = fs::read_to_string(&path).unwrap(); - assert_eq!(generated_data, "hello\n"); - - // and we should be able to read (and thus execute) our tool - let path = env::var("SOME_TOOL").unwrap(); - assert!(!fs::read(&path).unwrap().is_empty()); -} diff --git a/examples/env_locations/main.rs b/examples/env_locations/main.rs deleted file mode 100644 index 3b07b1dc9a..0000000000 --- a/examples/env_locations/main.rs +++ /dev/null @@ -1,12 +0,0 @@ -#[test] -fn test() { - // our source file should be readable - let source_file = std::fs::read_to_string(env!("SOURCE_FILE")).unwrap(); - assert_eq!(source_file, "source\n"); - // our generated data file should be readable at run time and build time - let generated_data = std::fs::read_to_string(env!("GENERATED_DATA_ROOT")).unwrap(); - let generated_data2 = include_str!(env!("GENERATED_DATA_ABS")); - assert_eq!(generated_data, generated_data2); - // and we should be able to read (and thus execute) our tool - assert!(!std::fs::read(env!("SOME_TOOL")).unwrap().is_empty()); -} diff --git a/examples/env_locations/source.file b/examples/env_locations/source.file deleted file mode 100644 index 5a18cd2fbf..0000000000 --- a/examples/env_locations/source.file +++ /dev/null @@ -1 +0,0 @@ -source diff --git a/extensions/.bazelignore b/extensions/.bazelignore new file mode 100644 index 0000000000..8c29e7dd07 --- /dev/null +++ b/extensions/.bazelignore @@ -0,0 +1,5 @@ +examples +bazel-out +bazel-testlogs +bazel-extensions +bazel-bin diff --git a/extensions/.bazelrc b/extensions/.bazelrc new file mode 100644 index 0000000000..57431732ce --- /dev/null +++ b/extensions/.bazelrc @@ -0,0 +1,82 @@ +############################################################################### +## Bazel Configuration Flags +## +## `.bazelrc` is a Bazel configuration file. +## https://bazel.build/docs/best-practices#bazelrc-file +############################################################################### + +# https://bazel.build/reference/command-line-reference#flag--enable_platform_specific_config +common --enable_platform_specific_config + +# https://bazel.build/docs/windows#symlink +startup --windows_enable_symlinks +build:windows --enable_runfiles + +# Enable the only currently supported report type +# https://bazel.build/reference/command-line-reference#flag--combined_report +coverage --combined_report=lcov + +# Avoid fully cached builds reporting no coverage and failing CI +# https://bazel.build/reference/command-line-reference#flag--experimental_fetch_all_coverage_outputs +coverage --experimental_fetch_all_coverage_outputs + +# Required for some of the tests +# https://bazel.build/reference/command-line-reference#flag--experimental_cc_shared_library +common --experimental_cc_shared_library + +############################################################################### +## Unique configuration groups +############################################################################### + +# Enable use of the nightly toolchains. +build:nightly --@rules_rust//rust/toolchain/channel=nightly + +# Enable rustfmt for all targets in the workspace +build:rustfmt --aspects=@rules_rust//rust:defs.bzl%rustfmt_aspect +build:rustfmt --output_groups=+rustfmt_checks + +# Enable clippy for all targets in the workspace +build:clippy --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect +build:clippy --output_groups=+clippy_checks + +# Enable unpretty for all targets in the workspace +build:unpretty --aspects=@rules_rust//rust:defs.bzl%rust_unpretty_aspect +build:unpretty --output_groups=+rust_unpretty + +# `unpretty` requires the nightly toolchain. See tracking issue: +# https://github.com/rust-lang/rust/issues/43364 +build:unpretty --config=nightly + +############################################################################### +## Incompatibility flags +############################################################################### + +# https://github.com/bazelbuild/bazel/issues/8195 +build --incompatible_disallow_empty_glob=true + +# https://github.com/bazelbuild/bazel/issues/12821 +build --nolegacy_external_runfiles + +# Required for cargo_build_script support before Bazel 7 +build --incompatible_merge_fixed_and_default_shell_env + +############################################################################### +## Bzlmod +############################################################################### + +# TODO: migrate all dependencies from WORKSPACE to MODULE.bazel +# https://github.com/bazelbuild/rules_rust/issues/2181 +common --noenable_bzlmod --enable_workspace + +# Disable the bzlmod lockfile, so we don't accidentally commit MODULE.bazel.lock +common --lockfile_mode=off + +############################################################################### +## Custom user flags +## +## This should always be the last thing in the `.bazelrc` file to ensure +## consistent behavior when setting flags in that file as `.bazelrc` files are +## evaluated top to bottom. +############################################################################### + +try-import %workspace%/user.bazelrc diff --git a/extensions/.gitignore b/extensions/.gitignore new file mode 100644 index 0000000000..758ea05a6d --- /dev/null +++ b/extensions/.gitignore @@ -0,0 +1,27 @@ +# Git ignore patterns + +# Bazel +/bazel-* +user.bazelrc +MODULE.bazel.lock + +# rust-analyzer +rust-project.json + +# rustfmt +*.rs.bk + +# Cargo +**/target/ + +# npm +**/node_modules/ + +# IDEs +.vscode +.idea +.idea/** +*.swp + +# BazelCI +bazelci.py diff --git a/extensions/BUILD.bazel b/extensions/BUILD.bazel new file mode 100644 index 0000000000..290c0d3e6d --- /dev/null +++ b/extensions/BUILD.bazel @@ -0,0 +1,12 @@ +load("@bazel_skylib//:bzl_library.bzl", "bzl_library") + +bzl_library( + name = "bzl_lib", + visibility = ["//visibility:public"], + deps = [ + "//bindgen:bzl_lib", + "//prost:bzl_lib", + "//protobuf:bzl_lib", + "//wasm_bindgen:bzl_lib", + ], +) diff --git a/extensions/MODULE.bazel b/extensions/MODULE.bazel new file mode 100644 index 0000000000..d6ff9238cf --- /dev/null +++ b/extensions/MODULE.bazel @@ -0,0 +1,71 @@ +"""bazelbuild/rules_rust/extensions""" + +module( + name = "rules_rust_ext", + version = "0.54.1", +) + +bazel_dep( + name = "rules_rust", + version = "0.54.1", +) +local_path_override( + module_name = "rules_rust", + path = "../..", +) + +rust_ext = use_extension("//:extensions.bzl", "rust_ext") +use_repo( + rust_ext, + "llvm-raw", + "rules_rust_bindgen__bindgen-0.70.1", + "rules_rust_bindgen__bindgen-cli-0.70.1", + "rules_rust_bindgen__clang-sys-1.8.1", + "rules_rust_bindgen__clap-4.5.17", + "rules_rust_bindgen__clap_complete-4.5.26", + "rules_rust_bindgen__env_logger-0.10.2", + "rules_rust_prost", + "rules_rust_prost__h2-0.4.6", + "rules_rust_prost__heck", + "rules_rust_prost__prost-0.13.1", + "rules_rust_prost__prost-types-0.13.1", + "rules_rust_prost__protoc-gen-prost-0.4.0", + "rules_rust_prost__protoc-gen-tonic-0.4.1", + "rules_rust_prost__tokio-1.39.3", + "rules_rust_prost__tokio-stream-0.1.15", + "rules_rust_prost__tonic-0.12.1", + "rules_rust_proto__grpc-0.6.2", + "rules_rust_proto__grpc-compiler-0.6.2", + "rules_rust_proto__log-0.4.17", + "rules_rust_proto__protobuf-2.8.2", + "rules_rust_proto__protobuf-codegen-2.8.2", + "rules_rust_proto__tls-api-0.1.22", + "rules_rust_proto__tls-api-stub-0.1.22", + "rules_rust_wasm_bindgen__anyhow-1.0.71", + "rules_rust_wasm_bindgen__assert_cmd-1.0.8", + "rules_rust_wasm_bindgen__diff-0.1.13", + "rules_rust_wasm_bindgen__docopt-1.1.1", + "rules_rust_wasm_bindgen__env_logger-0.8.4", + "rules_rust_wasm_bindgen__log-0.4.19", + "rules_rust_wasm_bindgen__predicates-1.0.8", + "rules_rust_wasm_bindgen__rayon-1.7.0", + "rules_rust_wasm_bindgen__rouille-3.6.2", + "rules_rust_wasm_bindgen__serde-1.0.171", + "rules_rust_wasm_bindgen__serde_derive-1.0.171", + "rules_rust_wasm_bindgen__serde_json-1.0.102", + "rules_rust_wasm_bindgen__tempfile-3.6.0", + "rules_rust_wasm_bindgen__ureq-2.8.0", + "rules_rust_wasm_bindgen__walrus-0.20.3", + "rules_rust_wasm_bindgen__wasm-bindgen-0.2.92", + "rules_rust_wasm_bindgen__wasm-bindgen-cli-support-0.2.92", + "rules_rust_wasm_bindgen__wasm-bindgen-shared-0.2.92", + "rules_rust_wasm_bindgen__wasmparser-0.102.0", + "rules_rust_wasm_bindgen__wasmprinter-0.2.60", + "rules_rust_wasm_bindgen_cli", +) + +register_toolchains( + "//bindgen:default_bindgen_toolchain", + "//prost:default_prost_toolchain", + "//protobuf:default-proto-toolchain", +) diff --git a/extensions/WORKSPACE.bazel b/extensions/WORKSPACE.bazel new file mode 100644 index 0000000000..23accb3b09 --- /dev/null +++ b/extensions/WORKSPACE.bazel @@ -0,0 +1,95 @@ +workspace(name = "rules_rust_ext") + +# 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("//prost/private:repositories.bzl", "rust_prost_dependencies", "rust_prost_register_toolchains") + +rust_prost_dependencies() + +rust_prost_register_toolchains() + +load("//prost:transitive_repositories.bzl", "rust_prost_transitive_repositories") + +rust_prost_transitive_repositories() + +# buildifier: disable=bzl-visibility +load("//prost/private/tests:deps.bzl", "prost_test_deps") + +prost_test_deps() + +# buildifier: disable=bzl-visibility +load("//prost/private/tests:deps_transitive.bzl", "prost_test_transitive_deps") + +prost_test_transitive_deps() + +load("//protobuf:repositories.bzl", "rust_proto_protobuf_dependencies", "rust_proto_protobuf_register_toolchains") + +rust_proto_protobuf_dependencies() + +rust_proto_protobuf_register_toolchains() + +load("//protobuf:transitive_repositories.bzl", "rust_proto_protobuf_transitive_repositories") + +rust_proto_protobuf_transitive_repositories() + +load("//bindgen:repositories.bzl", "rust_bindgen_dependencies", "rust_bindgen_register_toolchains") + +rust_bindgen_dependencies() + +rust_bindgen_register_toolchains() + +load("//bindgen:transitive_repositories.bzl", "rust_bindgen_transitive_dependencies") + +rust_bindgen_transitive_dependencies() + +load("//wasm_bindgen:repositories.bzl", "rust_wasm_bindgen_repositories") + +rust_wasm_bindgen_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/WORKSPACE.bzlmod b/extensions/WORKSPACE.bzlmod new file mode 100644 index 0000000000..6a6424ffc3 --- /dev/null +++ b/extensions/WORKSPACE.bzlmod @@ -0,0 +1 @@ +workspace(name = "rules_rust_ext") diff --git a/extensions/bindgen/3rdparty/BUILD.bazel b/extensions/bindgen/3rdparty/BUILD.bazel index f7d6b31a35..c3fa6d15be 100644 --- a/extensions/bindgen/3rdparty/BUILD.bazel +++ b/extensions/bindgen/3rdparty/BUILD.bazel @@ -1,6 +1,6 @@ load("@bazel_skylib//:bzl_library.bzl", "bzl_library") +load("@rules_rust//crate_universe:defs.bzl", "crate", "crates_vendor") load("//bindgen:repositories.bzl", "BINDGEN_VERSION") -load("//crate_universe:defs.bzl", "crate", "crates_vendor") _BINDGEN_CLI_PACKAGES = { "clap": crate.spec( diff --git a/extensions/bindgen/3rdparty/BUILD.bindgen-cli.bazel b/extensions/bindgen/3rdparty/BUILD.bindgen-cli.bazel index eb6e62776f..3e76652727 100644 --- a/extensions/bindgen/3rdparty/BUILD.bindgen-cli.bazel +++ b/extensions/bindgen/3rdparty/BUILD.bindgen-cli.bazel @@ -1,5 +1,5 @@ -load("@rules_rust//bindgen:repositories.bzl", "BINDGEN_VERSION") load("@rules_rust//rust:defs.bzl", "rust_binary") +load("@rules_rust_ext//bindgen:repositories.bzl", "BINDGEN_VERSION") package(default_visibility = ["//visibility:public"]) @@ -31,7 +31,7 @@ rust_binary( ], version = BINDGEN_VERSION, # This list is produced by adding the contents of https://github.com/rust-lang/rust-bindgen/blob/main/bindgen-cli/Cargo.toml - # to `@rules_rust//bindgen/3rdparty:crates_vendor`, rendering dependencies, and updating the deps + # to `@rules_rust_ext//bindgen/3rdparty:crates_vendor`, rendering dependencies, and updating the deps deps = [ "@rules_rust_bindgen__bindgen-{}//:bindgen".format(BINDGEN_VERSION), "@rules_rust_bindgen__clap-4.5.17//:clap", diff --git a/extensions/bindgen/3rdparty/crates/crates.bzl b/extensions/bindgen/3rdparty/crates/crates.bzl index 7e262cab89..31f78945bb 100644 --- a/extensions/bindgen/3rdparty/crates/crates.bzl +++ b/extensions/bindgen/3rdparty/crates/crates.bzl @@ -9,10 +9,10 @@ load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") # buildifier: disable=bzl-visibility -load("@rules_rust//bindgen/3rdparty/crates:defs.bzl", _crate_repositories = "crate_repositories") +load("@rules_rust//crate_universe/private:crates_vendor.bzl", "crates_vendor_remote_repository") # buildifier: disable=bzl-visibility -load("@rules_rust//crate_universe/private:crates_vendor.bzl", "crates_vendor_remote_repository") +load("@rules_rust_ext//bindgen/3rdparty/crates:defs.bzl", _crate_repositories = "crate_repositories") def crate_repositories(): """Generates repositories for vendored crates. @@ -23,8 +23,8 @@ def crate_repositories(): maybe( crates_vendor_remote_repository, name = "rules_rust_bindgen", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.bazel"), - defs_module = Label("@rules_rust//bindgen/3rdparty/crates:defs.bzl"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.bazel"), + defs_module = Label("@rules_rust_ext//bindgen/3rdparty/crates:defs.bzl"), ) direct_deps = [struct(repo = "rules_rust_bindgen", is_dev_dep = False)] diff --git a/extensions/bindgen/3rdparty/crates/defs.bzl b/extensions/bindgen/3rdparty/crates/defs.bzl index a50e729cb4..c22304f98e 100644 --- a/extensions/bindgen/3rdparty/crates/defs.bzl +++ b/extensions/bindgen/3rdparty/crates/defs.bzl @@ -429,7 +429,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/aho-corasick/1.1.3/download"], strip_prefix = "aho-corasick-1.1.3", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.aho-corasick-1.1.3.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.aho-corasick-1.1.3.bazel"), ) maybe( @@ -439,7 +439,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/annotate-snippets/0.9.2/download"], strip_prefix = "annotate-snippets-0.9.2", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.annotate-snippets-0.9.2.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.annotate-snippets-0.9.2.bazel"), ) maybe( @@ -449,7 +449,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/anstream/0.6.15/download"], strip_prefix = "anstream-0.6.15", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.anstream-0.6.15.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.anstream-0.6.15.bazel"), ) maybe( @@ -459,7 +459,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/anstyle/1.0.8/download"], strip_prefix = "anstyle-1.0.8", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.anstyle-1.0.8.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.anstyle-1.0.8.bazel"), ) maybe( @@ -469,7 +469,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/anstyle-parse/0.2.5/download"], strip_prefix = "anstyle-parse-0.2.5", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.anstyle-parse-0.2.5.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.anstyle-parse-0.2.5.bazel"), ) maybe( @@ -479,7 +479,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/anstyle-query/1.1.1/download"], strip_prefix = "anstyle-query-1.1.1", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.anstyle-query-1.1.1.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.anstyle-query-1.1.1.bazel"), ) maybe( @@ -489,7 +489,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/anstyle-wincon/3.0.4/download"], strip_prefix = "anstyle-wincon-3.0.4", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.anstyle-wincon-3.0.4.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.anstyle-wincon-3.0.4.bazel"), ) maybe( @@ -499,7 +499,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/bindgen/0.70.1/download"], strip_prefix = "bindgen-0.70.1", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.bindgen-0.70.1.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.bindgen-0.70.1.bazel"), ) maybe( @@ -509,7 +509,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/bitflags/2.6.0/download"], strip_prefix = "bitflags-2.6.0", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.bitflags-2.6.0.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.bitflags-2.6.0.bazel"), ) maybe( @@ -519,7 +519,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/cexpr/0.6.0/download"], strip_prefix = "cexpr-0.6.0", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.cexpr-0.6.0.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.cexpr-0.6.0.bazel"), ) maybe( @@ -529,7 +529,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/cfg-if/1.0.0/download"], strip_prefix = "cfg-if-1.0.0", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.cfg-if-1.0.0.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.cfg-if-1.0.0.bazel"), ) maybe( @@ -539,7 +539,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/clang-sys/1.8.1/download"], strip_prefix = "clang-sys-1.8.1", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.clang-sys-1.8.1.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.clang-sys-1.8.1.bazel"), ) maybe( @@ -549,7 +549,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/clap/4.5.17/download"], strip_prefix = "clap-4.5.17", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.clap-4.5.17.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.clap-4.5.17.bazel"), ) maybe( @@ -559,7 +559,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/clap_builder/4.5.17/download"], strip_prefix = "clap_builder-4.5.17", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.clap_builder-4.5.17.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.clap_builder-4.5.17.bazel"), ) maybe( @@ -569,7 +569,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/clap_complete/4.5.26/download"], strip_prefix = "clap_complete-4.5.26", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.clap_complete-4.5.26.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.clap_complete-4.5.26.bazel"), ) maybe( @@ -579,7 +579,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/clap_derive/4.5.13/download"], strip_prefix = "clap_derive-4.5.13", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.clap_derive-4.5.13.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.clap_derive-4.5.13.bazel"), ) maybe( @@ -589,7 +589,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/clap_lex/0.7.2/download"], strip_prefix = "clap_lex-0.7.2", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.clap_lex-0.7.2.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.clap_lex-0.7.2.bazel"), ) maybe( @@ -599,7 +599,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/colorchoice/1.0.2/download"], strip_prefix = "colorchoice-1.0.2", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.colorchoice-1.0.2.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.colorchoice-1.0.2.bazel"), ) maybe( @@ -609,7 +609,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/either/1.13.0/download"], strip_prefix = "either-1.13.0", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.either-1.13.0.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.either-1.13.0.bazel"), ) maybe( @@ -619,7 +619,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/env_logger/0.10.2/download"], strip_prefix = "env_logger-0.10.2", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.env_logger-0.10.2.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.env_logger-0.10.2.bazel"), ) maybe( @@ -629,7 +629,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/glob/0.3.1/download"], strip_prefix = "glob-0.3.1", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.glob-0.3.1.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.glob-0.3.1.bazel"), ) maybe( @@ -639,7 +639,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/heck/0.5.0/download"], strip_prefix = "heck-0.5.0", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.heck-0.5.0.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.heck-0.5.0.bazel"), ) maybe( @@ -649,7 +649,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/hermit-abi/0.4.0/download"], strip_prefix = "hermit-abi-0.4.0", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.hermit-abi-0.4.0.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.hermit-abi-0.4.0.bazel"), ) maybe( @@ -659,7 +659,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/humantime/2.1.0/download"], strip_prefix = "humantime-2.1.0", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.humantime-2.1.0.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.humantime-2.1.0.bazel"), ) maybe( @@ -669,7 +669,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/is-terminal/0.4.13/download"], strip_prefix = "is-terminal-0.4.13", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.is-terminal-0.4.13.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.is-terminal-0.4.13.bazel"), ) maybe( @@ -679,7 +679,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/is_terminal_polyfill/1.70.1/download"], strip_prefix = "is_terminal_polyfill-1.70.1", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.is_terminal_polyfill-1.70.1.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.is_terminal_polyfill-1.70.1.bazel"), ) maybe( @@ -689,7 +689,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/itertools/0.13.0/download"], strip_prefix = "itertools-0.13.0", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.itertools-0.13.0.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.itertools-0.13.0.bazel"), ) maybe( @@ -699,7 +699,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/libc/0.2.158/download"], strip_prefix = "libc-0.2.158", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.libc-0.2.158.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.libc-0.2.158.bazel"), ) maybe( @@ -709,7 +709,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/libloading/0.8.5/download"], strip_prefix = "libloading-0.8.5", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.libloading-0.8.5.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.libloading-0.8.5.bazel"), ) maybe( @@ -719,7 +719,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/log/0.4.22/download"], strip_prefix = "log-0.4.22", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.log-0.4.22.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.log-0.4.22.bazel"), ) maybe( @@ -729,7 +729,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/memchr/2.7.4/download"], strip_prefix = "memchr-2.7.4", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.memchr-2.7.4.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.memchr-2.7.4.bazel"), ) maybe( @@ -739,7 +739,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/minimal-lexical/0.2.1/download"], strip_prefix = "minimal-lexical-0.2.1", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.minimal-lexical-0.2.1.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.minimal-lexical-0.2.1.bazel"), ) maybe( @@ -749,7 +749,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/nom/7.1.3/download"], strip_prefix = "nom-7.1.3", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.nom-7.1.3.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.nom-7.1.3.bazel"), ) maybe( @@ -759,7 +759,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/prettyplease/0.2.22/download"], strip_prefix = "prettyplease-0.2.22", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.prettyplease-0.2.22.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.prettyplease-0.2.22.bazel"), ) maybe( @@ -769,7 +769,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/proc-macro2/1.0.86/download"], strip_prefix = "proc-macro2-1.0.86", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.proc-macro2-1.0.86.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.proc-macro2-1.0.86.bazel"), ) maybe( @@ -779,7 +779,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/quote/1.0.37/download"], strip_prefix = "quote-1.0.37", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.quote-1.0.37.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.quote-1.0.37.bazel"), ) maybe( @@ -789,7 +789,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/regex/1.10.6/download"], strip_prefix = "regex-1.10.6", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.regex-1.10.6.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.regex-1.10.6.bazel"), ) maybe( @@ -799,7 +799,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/regex-automata/0.4.7/download"], strip_prefix = "regex-automata-0.4.7", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.regex-automata-0.4.7.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.regex-automata-0.4.7.bazel"), ) maybe( @@ -809,7 +809,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/regex-syntax/0.8.4/download"], strip_prefix = "regex-syntax-0.8.4", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.regex-syntax-0.8.4.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.regex-syntax-0.8.4.bazel"), ) maybe( @@ -819,7 +819,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/rustc-hash/1.1.0/download"], strip_prefix = "rustc-hash-1.1.0", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.rustc-hash-1.1.0.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.rustc-hash-1.1.0.bazel"), ) maybe( @@ -829,7 +829,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/shlex/1.3.0/download"], strip_prefix = "shlex-1.3.0", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.shlex-1.3.0.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.shlex-1.3.0.bazel"), ) maybe( @@ -839,7 +839,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/strsim/0.11.1/download"], strip_prefix = "strsim-0.11.1", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.strsim-0.11.1.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.strsim-0.11.1.bazel"), ) maybe( @@ -849,7 +849,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/syn/2.0.77/download"], strip_prefix = "syn-2.0.77", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.syn-2.0.77.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.syn-2.0.77.bazel"), ) maybe( @@ -859,7 +859,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/termcolor/1.4.1/download"], strip_prefix = "termcolor-1.4.1", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.termcolor-1.4.1.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.termcolor-1.4.1.bazel"), ) maybe( @@ -869,7 +869,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/unicode-ident/1.0.13/download"], strip_prefix = "unicode-ident-1.0.13", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.unicode-ident-1.0.13.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.unicode-ident-1.0.13.bazel"), ) maybe( @@ -879,7 +879,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/unicode-width/0.1.13/download"], strip_prefix = "unicode-width-0.1.13", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.unicode-width-0.1.13.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.unicode-width-0.1.13.bazel"), ) maybe( @@ -889,7 +889,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/utf8parse/0.2.2/download"], strip_prefix = "utf8parse-0.2.2", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.utf8parse-0.2.2.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.utf8parse-0.2.2.bazel"), ) maybe( @@ -899,7 +899,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/winapi/0.3.9/download"], strip_prefix = "winapi-0.3.9", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.winapi-0.3.9.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.winapi-0.3.9.bazel"), ) maybe( @@ -909,7 +909,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/winapi-i686-pc-windows-gnu/0.4.0/download"], strip_prefix = "winapi-i686-pc-windows-gnu-0.4.0", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel"), ) maybe( @@ -919,7 +919,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/winapi-util/0.1.9/download"], strip_prefix = "winapi-util-0.1.9", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.winapi-util-0.1.9.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.winapi-util-0.1.9.bazel"), ) maybe( @@ -929,7 +929,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/winapi-x86_64-pc-windows-gnu/0.4.0/download"], strip_prefix = "winapi-x86_64-pc-windows-gnu-0.4.0", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel"), ) maybe( @@ -939,7 +939,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/windows-sys/0.52.0/download"], strip_prefix = "windows-sys-0.52.0", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.windows-sys-0.52.0.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.windows-sys-0.52.0.bazel"), ) maybe( @@ -949,7 +949,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/windows-sys/0.59.0/download"], strip_prefix = "windows-sys-0.59.0", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.windows-sys-0.59.0.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.windows-sys-0.59.0.bazel"), ) maybe( @@ -959,7 +959,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/windows-targets/0.52.6/download"], strip_prefix = "windows-targets-0.52.6", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.windows-targets-0.52.6.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.windows-targets-0.52.6.bazel"), ) maybe( @@ -969,7 +969,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/windows_aarch64_gnullvm/0.52.6/download"], strip_prefix = "windows_aarch64_gnullvm-0.52.6", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.windows_aarch64_gnullvm-0.52.6.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.windows_aarch64_gnullvm-0.52.6.bazel"), ) maybe( @@ -979,7 +979,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/windows_aarch64_msvc/0.52.6/download"], strip_prefix = "windows_aarch64_msvc-0.52.6", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.windows_aarch64_msvc-0.52.6.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.windows_aarch64_msvc-0.52.6.bazel"), ) maybe( @@ -989,7 +989,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/windows_i686_gnu/0.52.6/download"], strip_prefix = "windows_i686_gnu-0.52.6", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.windows_i686_gnu-0.52.6.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.windows_i686_gnu-0.52.6.bazel"), ) maybe( @@ -999,7 +999,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/windows_i686_gnullvm/0.52.6/download"], strip_prefix = "windows_i686_gnullvm-0.52.6", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.windows_i686_gnullvm-0.52.6.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.windows_i686_gnullvm-0.52.6.bazel"), ) maybe( @@ -1009,7 +1009,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/windows_i686_msvc/0.52.6/download"], strip_prefix = "windows_i686_msvc-0.52.6", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.windows_i686_msvc-0.52.6.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.windows_i686_msvc-0.52.6.bazel"), ) maybe( @@ -1019,7 +1019,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/windows_x86_64_gnu/0.52.6/download"], strip_prefix = "windows_x86_64_gnu-0.52.6", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.windows_x86_64_gnu-0.52.6.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.windows_x86_64_gnu-0.52.6.bazel"), ) maybe( @@ -1029,7 +1029,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/windows_x86_64_gnullvm/0.52.6/download"], strip_prefix = "windows_x86_64_gnullvm-0.52.6", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.windows_x86_64_gnullvm-0.52.6.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.windows_x86_64_gnullvm-0.52.6.bazel"), ) maybe( @@ -1039,7 +1039,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/windows_x86_64_msvc/0.52.6/download"], strip_prefix = "windows_x86_64_msvc-0.52.6", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.windows_x86_64_msvc-0.52.6.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.windows_x86_64_msvc-0.52.6.bazel"), ) maybe( @@ -1049,7 +1049,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/yansi-term/0.1.2/download"], strip_prefix = "yansi-term-0.1.2", - build_file = Label("@rules_rust//bindgen/3rdparty/crates:BUILD.yansi-term-0.1.2.bazel"), + build_file = Label("@rules_rust_ext//bindgen/3rdparty/crates:BUILD.yansi-term-0.1.2.bazel"), ) return [ diff --git a/extensions/bindgen/3rdparty/patches/README.md b/extensions/bindgen/3rdparty/patches/README.md index 6191ecf288..c5d8a7cff8 100644 --- a/extensions/bindgen/3rdparty/patches/README.md +++ b/extensions/bindgen/3rdparty/patches/README.md @@ -1,6 +1,6 @@ # Patches -All patches pair with the versions of the referenced repositories defined in `@rules_rust//bindgen:repositories.bzl`. +All patches pair with the versions of the referenced repositories defined in `@rules_rust_ext//bindgen:repositories.bzl`. ## [llvm-project.cxx17](./llvm-project.cxx17.patch) diff --git a/extensions/bindgen/BUILD.bazel b/extensions/bindgen/BUILD.bazel index 0ee90783ba..311a4d46b7 100644 --- a/extensions/bindgen/BUILD.bazel +++ b/extensions/bindgen/BUILD.bazel @@ -3,6 +3,10 @@ load("//bindgen:defs.bzl", "rust_bindgen_toolchain") package(default_visibility = ["//visibility:public"]) +exports_files([ + "defs.bzl", +]) + toolchain_type( name = "toolchain_type", ) @@ -13,7 +17,7 @@ bzl_library( deps = [ "//bindgen/3rdparty:bzl_lib", "//bindgen/private:bzl_lib", - "//rust:bzl_lib", + "@rules_rust//rust:bzl_lib", ], ) diff --git a/extensions/bindgen/defs.bzl b/extensions/bindgen/defs.bzl index 44d42bed0f..e649f7c4cc 100644 --- a/extensions/bindgen/defs.bzl +++ b/extensions/bindgen/defs.bzl @@ -1,4 +1,46 @@ -"""Rust Bindgen rules""" +"""# rules_rust_ext bindgen + +These rules are for using [Bindgen][bindgen] to generate [Rust][rust] bindings to C (and some C++) libraries. + +[rust]: http://www.rust-lang.org/ +[bindgen]: https://github.com/rust-lang/rust-bindgen + +See the [bindgen example](https://github.com/bazelbuild/rules_rust/tree/main/examples/bindgen/BUILD.bazel) for a more complete example of use. + +## Setup + +To use the Rust bindgen rules, add the following to your `WORKSPACE` file to add the +external repositories for the Rust bindgen toolchain (in addition to the [rust rules setup](https://bazelbuild.github.io/rules_rust/#setup)): + +```python +load("@rules_rust_ext//bindgen:repositories.bzl", "rust_bindgen_dependencies", "rust_bindgen_register_toolchains") + +rust_bindgen_dependencies() + +rust_bindgen_register_toolchains() + +load("@rules_rust_ext//bindgen:transitive_repositories.bzl", "rust_bindgen_transitive_dependencies") + +rust_bindgen_transitive_dependencies() +``` + +Bindgen aims to be as hermetic as possible so will end up building `libclang` from [llvm-project][llvm_proj] from +source. If this is found to be undesirable then no Bindgen related calls should be added to your WORKSPACE and instead +users should define their own repositories using something akin to [crate_universe][cra_uni] and define their own +toolchains following the instructions for [rust_bindgen_toolchain](#rust_bindgen_toolchain). + +[llvm_proj]: https://github.com/llvm/llvm-project +[cra_uni]: https://bazelbuild.github.io/rules_rust/crate_universe.html + +## Rules + +- [rust_bindgen](#rust_bindgen) +- [rust_bindgen_library](#rust_bindgen_library) +- [rust_bindgen_toolchain](#rust_bindgen_toolchain) + +--- +--- +""" load( "//bindgen/private:bindgen.bzl", diff --git a/extensions/bindgen/private/BUILD.bazel b/extensions/bindgen/private/BUILD.bazel index e8f1c3382d..6ff88d2267 100644 --- a/extensions/bindgen/private/BUILD.bazel +++ b/extensions/bindgen/private/BUILD.bazel @@ -6,4 +6,7 @@ bzl_library( "@rules_cc//cc:bzl_srcs", ], visibility = ["//bindgen:__pkg__"], + deps = [ + "@rules_rust//rust:bzl_lib", + ], ) diff --git a/extensions/bindgen/private/bindgen.bzl b/extensions/bindgen/private/bindgen.bzl index 8a70be1216..120da59511 100644 --- a/extensions/bindgen/private/bindgen.bzl +++ b/extensions/bindgen/private/bindgen.bzl @@ -19,14 +19,14 @@ load( "CPP_COMPILE_ACTION_NAME", ) load("@rules_cc//cc:defs.bzl", "CcInfo", "cc_library") -load("//rust:defs.bzl", "rust_library") -load("//rust:rust_common.bzl", "BuildInfo") +load("@rules_rust//rust:defs.bzl", "rust_library") +load("@rules_rust//rust:rust_common.bzl", "BuildInfo") # buildifier: disable=bzl-visibility -load("//rust/private:rustc.bzl", "get_linker_and_args") +load("@rules_rust//rust/private:rustc.bzl", "get_linker_and_args") # buildifier: disable=bzl-visibility -load("//rust/private:utils.bzl", "find_cc_toolchain", "get_lib_name_default", "get_preferred_artifact") +load("@rules_rust//rust/private:utils.bzl", "find_cc_toolchain", "get_lib_name_default", "get_preferred_artifact") # TODO(hlopko): use the more robust logic from rustc.bzl also here, through a reasonable API. def _get_libs_for_static_executable(dep): @@ -237,7 +237,7 @@ def _rust_bindgen_impl(ctx): args.add(c_output.path) # Vanilla usage of bindgen produces formatted output, here we do the same if we have `rustfmt` in our toolchain. - rustfmt_toolchain = ctx.toolchains[Label("//rust/rustfmt:toolchain_type")] + rustfmt_toolchain = ctx.toolchains[Label("@rules_rust//rust/rustfmt:toolchain_type")] if rustfmt_toolchain and toolchain.default_rustfmt: # Bindgen is able to find rustfmt using the RUSTFMT environment variable env.update({"RUSTFMT": rustfmt_toolchain.rustfmt.path}) @@ -398,7 +398,7 @@ rust_bindgen = rule( default = Label("@bazel_tools//tools/cpp:current_cc_toolchain"), ), "_process_wrapper": attr.label( - default = Label("//util/process_wrapper"), + default = Label("@rules_rust//util/process_wrapper"), executable = True, allow_single_file = True, cfg = "exec", @@ -408,8 +408,8 @@ rust_bindgen = rule( fragments = ["cpp"], toolchains = [ config_common.toolchain_type("//bindgen:toolchain_type"), - config_common.toolchain_type("//rust:toolchain_type"), - config_common.toolchain_type("//rust/rustfmt:toolchain_type", mandatory = False), + config_common.toolchain_type("@rules_rust//rust:toolchain_type"), + config_common.toolchain_type("@rules_rust//rust/rustfmt:toolchain_type", mandatory = False), config_common.toolchain_type("@bazel_tools//tools/cpp:toolchain_type"), ], ) @@ -428,12 +428,12 @@ rust_bindgen_toolchain = rule( doc = """\ The tools required for the `rust_bindgen` rule. -This rule depends on the [`bindgen`](https://crates.io/crates/bindgen) binary crate, and it +This rule depends on the [`bindgen`](https://crates.io/crates/bindgen) binary crate, and it in turn depends on both a clang binary and the clang library. To obtain these dependencies, `rust_bindgen_dependencies` imports bindgen and its dependencies. ```python -load("@rules_rust//bindgen:defs.bzl", "rust_bindgen_toolchain") +load("@rules_rust_ext//bindgen:defs.bzl", "rust_bindgen_toolchain") rust_bindgen_toolchain( name = "bindgen_toolchain_impl", @@ -446,7 +446,7 @@ rust_bindgen_toolchain( toolchain( name = "bindgen_toolchain", toolchain = "bindgen_toolchain_impl", - toolchain_type = "@rules_rust//bindgen:toolchain_type", + toolchain_type = "@rules_rust_ext//bindgen:toolchain_type", ) ``` diff --git a/extensions/bindgen/test/bindgen_test.bzl b/extensions/bindgen/test/bindgen_test.bzl index 92b010dba4..97abc93bb1 100644 --- a/extensions/bindgen/test/bindgen_test.bzl +++ b/extensions/bindgen/test/bindgen_test.bzl @@ -1,8 +1,8 @@ """Analysis test for for rust_bindgen_library rule.""" load("@rules_cc//cc:defs.bzl", "cc_library") -load("@rules_rust//bindgen:defs.bzl", "rust_bindgen_library") load("@rules_rust//rust:defs.bzl", "rust_binary") +load("@rules_rust_ext//bindgen:defs.bzl", "rust_bindgen_library") load("@rules_testing//lib:analysis_test.bzl", "analysis_test", "test_suite") def _test_cc_linkopt_impl(env, target): @@ -58,7 +58,11 @@ def _test_cc_lib_object_merging_disabled_impl(env, target): env.expect.that_action(target.actions[0]).mnemonic().contains("RustBindgen") def _test_cc_lib_object_merging(name): - cc_library(name = name + "_cc", hdrs = ["simple.h"], srcs = ["simple.cc"]) + cc_library( + name = name + "_cc", + hdrs = ["simple.h"], + srcs = ["simple.cc"], + ) rust_bindgen_library( name = name + "_rust_bindgen", @@ -75,7 +79,11 @@ def _test_cc_lib_object_merging(name): ) def _test_cc_lib_object_merging_disabled(name): - cc_library(name = name + "_cc", hdrs = ["simple.h"], srcs = ["simple.cc"]) + cc_library( + name = name + "_cc", + hdrs = ["simple.h"], + srcs = ["simple.cc"], + ) rust_bindgen_library( name = name + "_rust_bindgen", diff --git a/extensions/examples/.bazelignore b/extensions/examples/.bazelignore new file mode 100644 index 0000000000..5c00b61cb9 --- /dev/null +++ b/extensions/examples/.bazelignore @@ -0,0 +1,11 @@ +android +bazel_env +bzlmod +cargo_manifest_dir/external_crate +crate_universe +crate_universe_unnamed +ios +ios_build +musl_cross_compiling +nix_cross_compiling +zig_cross_compiling diff --git a/extensions/examples/.bazelrc b/extensions/examples/.bazelrc new file mode 100644 index 0000000000..4bdd2dcae8 --- /dev/null +++ b/extensions/examples/.bazelrc @@ -0,0 +1,31 @@ +# `.bazelrc` is a Bazel configuration file. +# https://bazel.build/docs/best-practices#bazelrc-file + +# Required on windows +common --enable_platform_specific_config +startup --windows_enable_symlinks +build:windows --enable_runfiles + +# Enable rustfmt for all targets in the workspace +build:rustfmt --aspects=@rules_rust//rust:defs.bzl%rustfmt_aspect +build:rustfmt --output_groups=+rustfmt_checks + +# Enable clippy for all targets in the workspace +build:clippy --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect +build:clippy --output_groups=+clippy_checks + +# TODO: migrate all dependencies from WORKSPACE to MODULE.bazel +# https://github.com/bazelbuild/rules_rust/issues/2181 +common --noenable_bzlmod + +# This isn't currently the defaut in Bazel, but we enable it to test we'll be ready if/when it flips. +build --incompatible_disallow_empty_glob + +build --java_runtime_version=remotejdk_21 +build --java_language_version=21 +build --tool_java_runtime_version=remotejdk_21 +build --tool_java_language_version=21 + +# This import should always be last to allow users to override +# settings for local development. +try-import %workspace%/user.bazelrc diff --git a/extensions/examples/.bazelversion b/extensions/examples/.bazelversion new file mode 100644 index 0000000000..eab246c063 --- /dev/null +++ b/extensions/examples/.bazelversion @@ -0,0 +1 @@ +7.3.2 diff --git a/extensions/examples/BUILD.bazel b/extensions/examples/BUILD.bazel new file mode 100644 index 0000000000..e69de29bb2 diff --git a/extensions/examples/WORKSPACE.bazel b/extensions/examples/WORKSPACE.bazel new file mode 100644 index 0000000000..9ba8ddad80 --- /dev/null +++ b/extensions/examples/WORKSPACE.bazel @@ -0,0 +1,113 @@ +workspace(name = "examples") + +# 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( + edition = "2018", +) + +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("@rules_rust_ext//bindgen:repositories.bzl", "rust_bindgen_dependencies", "rust_bindgen_register_toolchains") + +rust_bindgen_dependencies() + +rust_bindgen_register_toolchains() + +load("@rules_rust_ext//bindgen:transitive_repositories.bzl", "rust_bindgen_transitive_dependencies") + +rust_bindgen_transitive_dependencies() + +load("@rules_rust_ext//protobuf:repositories.bzl", "rust_proto_protobuf_dependencies", "rust_proto_protobuf_register_toolchains") + +rust_proto_protobuf_dependencies() + +rust_proto_protobuf_register_toolchains() + +load("@rules_rust_ext//protobuf:transitive_repositories.bzl", "rust_proto_protobuf_transitive_repositories") + +rust_proto_protobuf_transitive_repositories() + +load("@rules_rust_ext//wasm_bindgen:repositories.bzl", "rust_wasm_bindgen_dependencies", "rust_wasm_bindgen_register_toolchains") + +rust_wasm_bindgen_dependencies() + +rust_wasm_bindgen_register_toolchains() + +load("@rules_rust_ext//wasm_bindgen/rules_nodejs:repositories.bzl", "nodejs_rust_wasm_bindgen_dependencies") + +nodejs_rust_wasm_bindgen_dependencies() + +load("@rules_rust_ext//wasm_bindgen/rules_js:repositories.bzl", "js_rust_wasm_bindgen_dependencies") + +js_rust_wasm_bindgen_dependencies() + +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) + +############################################################################### +# Examples dependencies +############################################################################### + +http_archive( + name = "build_bazel_rules_nodejs", + sha256 = "709cc0dcb51cf9028dd57c268066e5bc8f03a119ded410a13b5c3925d6e43c48", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.8.4/rules_nodejs-5.8.4.tar.gz"], +) + +load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories") + +node_repositories() + +load("@bazel_features//:deps.bzl", "bazel_features_deps") + +bazel_features_deps() + +############################################################################### + +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", +) + +load("@bazel_ci_rules//:rbe_repo.bzl", "rbe_preconfig") + +# Creates a default toolchain config for RBE. +# Use this as is if you are using the rbe_ubuntu16_04 container, +# otherwise refer to RBE docs. +rbe_preconfig( + name = "buildkite_config", + toolchain = "ubuntu1804-bazel-java11", +) + +load("@build_bazel_apple_support//crosstool:setup.bzl", "apple_cc_configure") + +# As of Bazel 7, Bazel's bundled cc_toolchain only supports using CommandLineTools and not a full Xcode. +# This manifests itself if you try to use anything which requires access to $DEVELOPER_DIR, such as our bindgen example which non-hermetically tries to read libc++ headers from the system. +# On CI (and for some of our contributors), we have a full Xcode install, so this fails. +# We register the apple_support cc_toolchain here because it supports both CommandLineTools and full Xcodes. +# See https://github.com/bazelbuild/rules_rust/issues/2207 and https://github.com/bazelbuild/bazel/issues/20638 +apple_cc_configure() diff --git a/extensions/examples/bindgen/BUILD.bazel b/extensions/examples/bindgen/BUILD.bazel index 400fd0c0fa..594fdfa44e 100644 --- a/extensions/examples/bindgen/BUILD.bazel +++ b/extensions/examples/bindgen/BUILD.bazel @@ -1,5 +1,5 @@ -load("@rules_rust//bindgen:defs.bzl", "rust_bindgen_library") load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_test") +load("@rules_rust_ext//bindgen:defs.bzl", "rust_bindgen_library") rust_bindgen_library( name = "simple_bindgen", diff --git a/extensions/examples/proto/basic/BUILD.bazel b/extensions/examples/proto/basic/BUILD.bazel index db0cf2cd9e..a04940cbfd 100644 --- a/extensions/examples/proto/basic/BUILD.bazel +++ b/extensions/examples/proto/basic/BUILD.bazel @@ -1,5 +1,5 @@ -load("@rules_rust//proto/protobuf:defs.bzl", "rust_proto_library") load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_library") +load("@rules_rust_ext//protobuf:defs.bzl", "rust_proto_library") package(default_visibility = ["//proto:__subpackages__"]) diff --git a/extensions/examples/proto/helloworld/BUILD.bazel b/extensions/examples/proto/helloworld/BUILD.bazel index d665aae731..a3f8a0ee79 100644 --- a/extensions/examples/proto/helloworld/BUILD.bazel +++ b/extensions/examples/proto/helloworld/BUILD.bazel @@ -1,6 +1,6 @@ load("@rules_proto//proto:defs.bzl", "proto_library") -load("@rules_rust//proto/protobuf:defs.bzl", "rust_grpc_library") load("@rules_rust//rust:defs.bzl", "rust_test") +load("@rules_rust_ext//protobuf:defs.bzl", "rust_grpc_library") proto_library( name = "helloworld", diff --git a/extensions/examples/proto/helloworld/greeter_client/BUILD.bazel b/extensions/examples/proto/helloworld/greeter_client/BUILD.bazel index f4d0c03803..18d0f40bb6 100644 --- a/extensions/examples/proto/helloworld/greeter_client/BUILD.bazel +++ b/extensions/examples/proto/helloworld/greeter_client/BUILD.bazel @@ -1,5 +1,5 @@ -load("@rules_rust//proto/protobuf:toolchain.bzl", "GRPC_COMPILE_DEPS") load("@rules_rust//rust:defs.bzl", "rust_binary") +load("@rules_rust_ext//protobuf:toolchain.bzl", "GRPC_COMPILE_DEPS") rust_binary( name = "greeter_client", diff --git a/extensions/examples/proto/helloworld/greeter_server/BUILD.bazel b/extensions/examples/proto/helloworld/greeter_server/BUILD.bazel index 40b78bb309..62c5493a36 100644 --- a/extensions/examples/proto/helloworld/greeter_server/BUILD.bazel +++ b/extensions/examples/proto/helloworld/greeter_server/BUILD.bazel @@ -1,5 +1,5 @@ -load("@rules_rust//proto/protobuf:toolchain.bzl", "GRPC_COMPILE_DEPS") load("@rules_rust//rust:defs.bzl", "rust_binary") +load("@rules_rust_ext//protobuf:toolchain.bzl", "GRPC_COMPILE_DEPS") rust_binary( name = "greeter_server", diff --git a/extensions/examples/wasm_bindgen/BUILD.bazel b/extensions/examples/wasm_bindgen/BUILD.bazel index f8b7b0140e..ea7a34f411 100644 --- a/extensions/examples/wasm_bindgen/BUILD.bazel +++ b/extensions/examples/wasm_bindgen/BUILD.bazel @@ -13,7 +13,7 @@ # limitations under the License. load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_shared_library") -load("@rules_rust//wasm_bindgen:defs.bzl", "rust_wasm_bindgen") +load("@rules_rust_ext//wasm_bindgen:defs.bzl", "rust_wasm_bindgen") package(default_visibility = ["//wasm_bindgen:__subpackages__"]) @@ -27,7 +27,7 @@ rust_binary( srcs = ["main.rs"], edition = "2018", deps = [ - "@rules_rust//wasm_bindgen/3rdparty:wasm_bindgen", + "@rules_rust_ext//wasm_bindgen/3rdparty:wasm_bindgen", ], ) @@ -36,7 +36,7 @@ rust_shared_library( srcs = ["main.rs"], edition = "2018", deps = [ - "@rules_rust//wasm_bindgen/3rdparty:wasm_bindgen", + "@rules_rust_ext//wasm_bindgen/3rdparty:wasm_bindgen", ], ) diff --git a/extensions/examples/wasm_bindgen/rules_js/BUILD.bazel b/extensions/examples/wasm_bindgen/rules_js/BUILD.bazel index 204718b676..5780882ab4 100644 --- a/extensions/examples/wasm_bindgen/rules_js/BUILD.bazel +++ b/extensions/examples/wasm_bindgen/rules_js/BUILD.bazel @@ -1,7 +1,7 @@ load("@aspect_rules_js//js:defs.bzl", "js_library", "js_test") load("@bazel_skylib//rules:copy_file.bzl", "copy_file") load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_shared_library") -load("@rules_rust//wasm_bindgen/rules_js:defs.bzl", "js_rust_wasm_bindgen") +load("@rules_rust_ext//wasm_bindgen/rules_js:defs.bzl", "js_rust_wasm_bindgen") package(default_visibility = ["//visibility:public"]) @@ -16,7 +16,7 @@ rust_binary( srcs = ["//wasm_bindgen:main.rs"], edition = "2018", deps = [ - "@rules_rust//wasm_bindgen/3rdparty:wasm_bindgen", + "@rules_rust_ext//wasm_bindgen/3rdparty:wasm_bindgen", ], ) @@ -25,7 +25,7 @@ rust_shared_library( srcs = ["//wasm_bindgen:main.rs"], edition = "2018", deps = [ - "@rules_rust//wasm_bindgen/3rdparty:wasm_bindgen", + "@rules_rust_ext//wasm_bindgen/3rdparty:wasm_bindgen", ], ) diff --git a/extensions/examples/wasm_bindgen/rules_nodejs/BUILD.bazel b/extensions/examples/wasm_bindgen/rules_nodejs/BUILD.bazel index 200d506e53..150bc3c922 100644 --- a/extensions/examples/wasm_bindgen/rules_nodejs/BUILD.bazel +++ b/extensions/examples/wasm_bindgen/rules_nodejs/BUILD.bazel @@ -1,6 +1,6 @@ load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_test") load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_shared_library") -load("@rules_rust//wasm_bindgen/rules_nodejs:defs.bzl", "nodejs_rust_wasm_bindgen") +load("@rules_rust_ext//wasm_bindgen/rules_nodejs:defs.bzl", "nodejs_rust_wasm_bindgen") package(default_visibility = ["//visibility:public"]) @@ -9,7 +9,7 @@ rust_binary( srcs = ["//wasm_bindgen:main.rs"], edition = "2018", deps = [ - "@rules_rust//wasm_bindgen/3rdparty:wasm_bindgen", + "@rules_rust_ext//wasm_bindgen/3rdparty:wasm_bindgen", ], ) @@ -18,7 +18,7 @@ rust_shared_library( srcs = ["//wasm_bindgen:main.rs"], edition = "2018", deps = [ - "@rules_rust//wasm_bindgen/3rdparty:wasm_bindgen", + "@rules_rust_ext//wasm_bindgen/3rdparty:wasm_bindgen", ], ) diff --git a/extensions/extensions.bzl b/extensions/extensions.bzl new file mode 100644 index 0000000000..1d851dc02a --- /dev/null +++ b/extensions/extensions.bzl @@ -0,0 +1,28 @@ +"""Bzlmod module extensions""" + +load("//bindgen:repositories.bzl", "rust_bindgen_dependencies") +load("//prost:repositories.bzl", "rust_prost_dependencies") +load("//protobuf:repositories.bzl", "rust_proto_protobuf_dependencies") +load("//wasm_bindgen:repositories.bzl", "rust_wasm_bindgen_dependencies") + +def _rust_ext_impl(module_ctx): + # This should contain the subset of WORKSPACE.bazel that defines + # repositories. + + direct_deps.extend(rust_prost_dependencies(bzlmod = True)) + direct_deps.extend(rust_proto_protobuf_dependencies(bzlmod = True)) + direct_deps.extend(rust_bindgen_dependencies()) + direct_deps.extend(rust_wasm_bindgen_dependencies()) + + # is_dev_dep is ignored here. It's not relevant for internal_deps, as dev + # dependencies are only relevant for module extensions that can be used + # by other MODULES. + return module_ctx.extension_metadata( + root_module_direct_deps = [repo.repo for repo in direct_deps], + root_module_direct_dev_deps = [], + ) + +rust_ext = module_extension( + doc = "Dependencies for rules_rust extensions.", + implementation = _rust_ext_impl, +) diff --git a/extensions/prost/BUILD.bazel b/extensions/prost/BUILD.bazel index 0d02900518..7a72f500ca 100644 --- a/extensions/prost/BUILD.bazel +++ b/extensions/prost/BUILD.bazel @@ -2,13 +2,17 @@ load("@bazel_skylib//:bzl_library.bzl", "bzl_library") package(default_visibility = ["//visibility:public"]) +exports_files([ + "defs.bzl", +]) + toolchain_type( name = "toolchain_type", ) toolchain( name = "default_prost_toolchain", - toolchain = "//proto/prost/private:default_prost_toolchain_impl", + toolchain = "//prost/private:default_prost_toolchain_impl", toolchain_type = ":toolchain_type", ) @@ -16,7 +20,6 @@ bzl_library( name = "bzl_lib", srcs = glob(["**/*.bzl"]), deps = [ - "//proto/prost/private:bzl_lib", - "//rust:bzl_lib", + "//prost/private:bzl_lib", ], ) diff --git a/extensions/prost/defs.bzl b/extensions/prost/defs.bzl index 401f10644d..37050a30d8 100644 --- a/extensions/prost/defs.bzl +++ b/extensions/prost/defs.bzl @@ -1,7 +1,7 @@ """Rules for building proto libraries in Rust.""" load( - "//proto/prost/private:prost.bzl", + "//prost/private:prost.bzl", _rust_prost_library = "rust_prost_library", _rust_prost_toolchain = "rust_prost_toolchain", ) diff --git a/extensions/prost/private/3rdparty/BUILD.bazel b/extensions/prost/private/3rdparty/BUILD.bazel index 8cae050e98..d882014df7 100644 --- a/extensions/prost/private/3rdparty/BUILD.bazel +++ b/extensions/prost/private/3rdparty/BUILD.bazel @@ -1,5 +1,5 @@ load("@bazel_skylib//:bzl_library.bzl", "bzl_library") -load("//crate_universe:defs.bzl", "crate", "crates_vendor") +load("@rules_rust//crate_universe:defs.bzl", "crate", "crates_vendor") crates_vendor( name = "crates_vendor", @@ -47,8 +47,8 @@ crates_vendor( bzl_library( name = "bzl_lib", srcs = [ - "//proto/prost/private/3rdparty/crates:crates.bzl", - "//proto/prost/private/3rdparty/crates:defs.bzl", + "//prost/private/3rdparty/crates:crates.bzl", + "//prost/private/3rdparty/crates:defs.bzl", ], - visibility = ["//proto/prost/private:__pkg__"], + visibility = ["//prost/private:__pkg__"], ) diff --git a/extensions/prost/private/3rdparty/crates/BUILD.addr2line-0.22.0.bazel b/extensions/prost/private/3rdparty/crates/BUILD.addr2line-0.22.0.bazel index 492099c907..77f7fd48bc 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.addr2line-0.22.0.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.addr2line-0.22.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.adler-1.0.2.bazel b/extensions/prost/private/3rdparty/crates/BUILD.adler-1.0.2.bazel index 629ed1184d..d20037e04f 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.adler-1.0.2.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.adler-1.0.2.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.aho-corasick-1.1.3.bazel b/extensions/prost/private/3rdparty/crates/BUILD.aho-corasick-1.1.3.bazel index 53889ed78e..dc2f8aa09d 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.aho-corasick-1.1.3.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.aho-corasick-1.1.3.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.anyhow-1.0.86.bazel b/extensions/prost/private/3rdparty/crates/BUILD.anyhow-1.0.86.bazel index dc3fa22b0a..3fd27cb8aa 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.anyhow-1.0.86.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.anyhow-1.0.86.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.async-stream-0.3.5.bazel b/extensions/prost/private/3rdparty/crates/BUILD.async-stream-0.3.5.bazel index 33f364d2e4..c3c58108d9 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.async-stream-0.3.5.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.async-stream-0.3.5.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.async-stream-impl-0.3.5.bazel b/extensions/prost/private/3rdparty/crates/BUILD.async-stream-impl-0.3.5.bazel index 64d28af610..b0bc4c9dd7 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.async-stream-impl-0.3.5.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.async-stream-impl-0.3.5.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_proc_macro") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.async-trait-0.1.81.bazel b/extensions/prost/private/3rdparty/crates/BUILD.async-trait-0.1.81.bazel index da3949cf8e..c9f00c11e5 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.async-trait-0.1.81.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.async-trait-0.1.81.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_proc_macro") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.atomic-waker-1.1.2.bazel b/extensions/prost/private/3rdparty/crates/BUILD.atomic-waker-1.1.2.bazel index 58459da417..9176748a69 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.atomic-waker-1.1.2.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.atomic-waker-1.1.2.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.autocfg-1.3.0.bazel b/extensions/prost/private/3rdparty/crates/BUILD.autocfg-1.3.0.bazel index b1ab261f2f..175b05c1c1 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.autocfg-1.3.0.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.autocfg-1.3.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.axum-0.7.5.bazel b/extensions/prost/private/3rdparty/crates/BUILD.axum-0.7.5.bazel index d6a57efa14..bfd901bbd1 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.axum-0.7.5.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.axum-0.7.5.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.axum-core-0.4.3.bazel b/extensions/prost/private/3rdparty/crates/BUILD.axum-core-0.4.3.bazel index ba03f51ddf..7506c1704f 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.axum-core-0.4.3.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.axum-core-0.4.3.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.backtrace-0.3.73.bazel b/extensions/prost/private/3rdparty/crates/BUILD.backtrace-0.3.73.bazel index eba55605a5..d5a90565a5 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.backtrace-0.3.73.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.backtrace-0.3.73.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.base64-0.22.1.bazel b/extensions/prost/private/3rdparty/crates/BUILD.base64-0.22.1.bazel index 36284de69f..5dfe6f8646 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.base64-0.22.1.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.base64-0.22.1.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.bazel b/extensions/prost/private/3rdparty/crates/BUILD.bazel index b177d4fc83..e2c4338227 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### package(default_visibility = ["//visibility:public"]) diff --git a/extensions/prost/private/3rdparty/crates/BUILD.bitflags-2.6.0.bazel b/extensions/prost/private/3rdparty/crates/BUILD.bitflags-2.6.0.bazel index 8fc14a2050..e2962ea7eb 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.bitflags-2.6.0.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.bitflags-2.6.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.byteorder-1.5.0.bazel b/extensions/prost/private/3rdparty/crates/BUILD.byteorder-1.5.0.bazel index 4484c555f4..4c0a4ae1f6 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.byteorder-1.5.0.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.byteorder-1.5.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.bytes-1.7.1.bazel b/extensions/prost/private/3rdparty/crates/BUILD.bytes-1.7.1.bazel index ac0f5cc5c9..92e46c0985 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.bytes-1.7.1.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.bytes-1.7.1.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.cc-1.1.14.bazel b/extensions/prost/private/3rdparty/crates/BUILD.cc-1.1.14.bazel index c237920607..ac50734dd7 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.cc-1.1.14.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.cc-1.1.14.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.cfg-if-1.0.0.bazel b/extensions/prost/private/3rdparty/crates/BUILD.cfg-if-1.0.0.bazel index 7a791f6026..8a7c93fb9b 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.cfg-if-1.0.0.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.cfg-if-1.0.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.either-1.13.0.bazel b/extensions/prost/private/3rdparty/crates/BUILD.either-1.13.0.bazel index 994ed1d402..ed92507174 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.either-1.13.0.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.either-1.13.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.equivalent-1.0.1.bazel b/extensions/prost/private/3rdparty/crates/BUILD.equivalent-1.0.1.bazel index ae45f3d52b..303a44b42d 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.equivalent-1.0.1.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.equivalent-1.0.1.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.errno-0.3.9.bazel b/extensions/prost/private/3rdparty/crates/BUILD.errno-0.3.9.bazel index 25a8853352..09efc3cb46 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.errno-0.3.9.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.errno-0.3.9.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.fastrand-2.1.1.bazel b/extensions/prost/private/3rdparty/crates/BUILD.fastrand-2.1.1.bazel index 6ad68e1783..a4d88533e0 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.fastrand-2.1.1.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.fastrand-2.1.1.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.fixedbitset-0.4.2.bazel b/extensions/prost/private/3rdparty/crates/BUILD.fixedbitset-0.4.2.bazel index 4c9d30c8c9..dc4a7a66d7 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.fixedbitset-0.4.2.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.fixedbitset-0.4.2.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.fnv-1.0.7.bazel b/extensions/prost/private/3rdparty/crates/BUILD.fnv-1.0.7.bazel index db02154fb4..15d72dcfc4 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.fnv-1.0.7.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.fnv-1.0.7.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.futures-channel-0.3.30.bazel b/extensions/prost/private/3rdparty/crates/BUILD.futures-channel-0.3.30.bazel index dc10ad4332..7fc1386fda 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.futures-channel-0.3.30.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.futures-channel-0.3.30.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.futures-core-0.3.30.bazel b/extensions/prost/private/3rdparty/crates/BUILD.futures-core-0.3.30.bazel index 04b960e684..5c2fae0f26 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.futures-core-0.3.30.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.futures-core-0.3.30.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.futures-sink-0.3.30.bazel b/extensions/prost/private/3rdparty/crates/BUILD.futures-sink-0.3.30.bazel index 8c6cac0364..11f92fdb38 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.futures-sink-0.3.30.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.futures-sink-0.3.30.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.futures-task-0.3.30.bazel b/extensions/prost/private/3rdparty/crates/BUILD.futures-task-0.3.30.bazel index b9e2e1f1dc..a9bebd74b8 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.futures-task-0.3.30.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.futures-task-0.3.30.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.futures-util-0.3.30.bazel b/extensions/prost/private/3rdparty/crates/BUILD.futures-util-0.3.30.bazel index 2fd7c08ee4..0e06b878a0 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.futures-util-0.3.30.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.futures-util-0.3.30.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.getrandom-0.2.15.bazel b/extensions/prost/private/3rdparty/crates/BUILD.getrandom-0.2.15.bazel index f357032098..92db1ababe 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.getrandom-0.2.15.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.getrandom-0.2.15.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.gimli-0.29.0.bazel b/extensions/prost/private/3rdparty/crates/BUILD.gimli-0.29.0.bazel index 5fec7e24c5..4a5ffa111b 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.gimli-0.29.0.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.gimli-0.29.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.h2-0.4.6.bazel b/extensions/prost/private/3rdparty/crates/BUILD.h2-0.4.6.bazel index 733f3e7c51..f0263b12fe 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.h2-0.4.6.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.h2-0.4.6.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.hashbrown-0.12.3.bazel b/extensions/prost/private/3rdparty/crates/BUILD.hashbrown-0.12.3.bazel index f3024cb8ad..a1021b8746 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.hashbrown-0.12.3.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.hashbrown-0.12.3.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.hashbrown-0.14.5.bazel b/extensions/prost/private/3rdparty/crates/BUILD.hashbrown-0.14.5.bazel index 16902eb827..5cea9643ea 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.hashbrown-0.14.5.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.hashbrown-0.14.5.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.heck-0.5.0.bazel b/extensions/prost/private/3rdparty/crates/BUILD.heck-0.5.0.bazel index 5d8e6996fb..f74e1dfb30 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.heck-0.5.0.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.heck-0.5.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.hermit-abi-0.3.9.bazel b/extensions/prost/private/3rdparty/crates/BUILD.hermit-abi-0.3.9.bazel index 415712c2e5..29129168f0 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.hermit-abi-0.3.9.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.hermit-abi-0.3.9.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.http-1.1.0.bazel b/extensions/prost/private/3rdparty/crates/BUILD.http-1.1.0.bazel index d9ea6a7fa6..cf238daff5 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.http-1.1.0.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.http-1.1.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.http-body-1.0.1.bazel b/extensions/prost/private/3rdparty/crates/BUILD.http-body-1.0.1.bazel index 3a1b6578af..f5fc3f05f3 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.http-body-1.0.1.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.http-body-1.0.1.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.http-body-util-0.1.2.bazel b/extensions/prost/private/3rdparty/crates/BUILD.http-body-util-0.1.2.bazel index dd9dfd9856..3c41b5ad56 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.http-body-util-0.1.2.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.http-body-util-0.1.2.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.httparse-1.9.4.bazel b/extensions/prost/private/3rdparty/crates/BUILD.httparse-1.9.4.bazel index 7522371f73..2f6c7300d6 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.httparse-1.9.4.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.httparse-1.9.4.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.httpdate-1.0.3.bazel b/extensions/prost/private/3rdparty/crates/BUILD.httpdate-1.0.3.bazel index 68b5b07de8..39fb6c2c82 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.httpdate-1.0.3.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.httpdate-1.0.3.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.hyper-1.4.1.bazel b/extensions/prost/private/3rdparty/crates/BUILD.hyper-1.4.1.bazel index d527d98a64..0bd3e5d821 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.hyper-1.4.1.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.hyper-1.4.1.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.hyper-timeout-0.5.1.bazel b/extensions/prost/private/3rdparty/crates/BUILD.hyper-timeout-0.5.1.bazel index dce5516462..8051118ee5 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.hyper-timeout-0.5.1.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.hyper-timeout-0.5.1.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.hyper-util-0.1.7.bazel b/extensions/prost/private/3rdparty/crates/BUILD.hyper-util-0.1.7.bazel index cdff2d367f..e784c38636 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.hyper-util-0.1.7.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.hyper-util-0.1.7.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.indexmap-1.9.3.bazel b/extensions/prost/private/3rdparty/crates/BUILD.indexmap-1.9.3.bazel index 4ff6f02d66..e92dfcdf86 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.indexmap-1.9.3.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.indexmap-1.9.3.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.indexmap-2.4.0.bazel b/extensions/prost/private/3rdparty/crates/BUILD.indexmap-2.4.0.bazel index 13070a548b..ecaa10e857 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.indexmap-2.4.0.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.indexmap-2.4.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.itertools-0.13.0.bazel b/extensions/prost/private/3rdparty/crates/BUILD.itertools-0.13.0.bazel index 34cbe441ff..be66c77c48 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.itertools-0.13.0.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.itertools-0.13.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.itoa-1.0.11.bazel b/extensions/prost/private/3rdparty/crates/BUILD.itoa-1.0.11.bazel index 618a3d4f62..44f2d5d5bd 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.itoa-1.0.11.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.itoa-1.0.11.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.libc-0.2.158.bazel b/extensions/prost/private/3rdparty/crates/BUILD.libc-0.2.158.bazel index 21b69ee8e1..4e46767c1f 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.libc-0.2.158.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.libc-0.2.158.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.linux-raw-sys-0.4.14.bazel b/extensions/prost/private/3rdparty/crates/BUILD.linux-raw-sys-0.4.14.bazel index e6bc49e70c..2126f41cfe 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.linux-raw-sys-0.4.14.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.linux-raw-sys-0.4.14.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.lock_api-0.4.12.bazel b/extensions/prost/private/3rdparty/crates/BUILD.lock_api-0.4.12.bazel index 1cf77729eb..07d3fb7886 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.lock_api-0.4.12.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.lock_api-0.4.12.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.log-0.4.22.bazel b/extensions/prost/private/3rdparty/crates/BUILD.log-0.4.22.bazel index 2cb6fefa15..e1722806f8 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.log-0.4.22.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.log-0.4.22.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.matchit-0.7.3.bazel b/extensions/prost/private/3rdparty/crates/BUILD.matchit-0.7.3.bazel index 2b0b0441b9..0148439546 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.matchit-0.7.3.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.matchit-0.7.3.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.memchr-2.7.4.bazel b/extensions/prost/private/3rdparty/crates/BUILD.memchr-2.7.4.bazel index 3adcb0eeb9..0d9b0ea630 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.memchr-2.7.4.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.memchr-2.7.4.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.mime-0.3.17.bazel b/extensions/prost/private/3rdparty/crates/BUILD.mime-0.3.17.bazel index f61424e0db..e5a8877627 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.mime-0.3.17.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.mime-0.3.17.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.miniz_oxide-0.7.4.bazel b/extensions/prost/private/3rdparty/crates/BUILD.miniz_oxide-0.7.4.bazel index c395cc2e96..f881d5127f 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.miniz_oxide-0.7.4.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.miniz_oxide-0.7.4.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.mio-1.0.2.bazel b/extensions/prost/private/3rdparty/crates/BUILD.mio-1.0.2.bazel index 02e3612d55..09fe238e88 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.mio-1.0.2.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.mio-1.0.2.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.multimap-0.10.0.bazel b/extensions/prost/private/3rdparty/crates/BUILD.multimap-0.10.0.bazel index 2b6334e995..dabf5eaabd 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.multimap-0.10.0.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.multimap-0.10.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.object-0.36.3.bazel b/extensions/prost/private/3rdparty/crates/BUILD.object-0.36.3.bazel index 43f836a120..9f4685f210 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.object-0.36.3.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.object-0.36.3.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.once_cell-1.19.0.bazel b/extensions/prost/private/3rdparty/crates/BUILD.once_cell-1.19.0.bazel index 0cbfece40b..df0caf8167 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.once_cell-1.19.0.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.once_cell-1.19.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.parking_lot-0.12.3.bazel b/extensions/prost/private/3rdparty/crates/BUILD.parking_lot-0.12.3.bazel index 11556655e9..d1fd62f4c0 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.parking_lot-0.12.3.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.parking_lot-0.12.3.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.parking_lot_core-0.9.10.bazel b/extensions/prost/private/3rdparty/crates/BUILD.parking_lot_core-0.9.10.bazel index 12bed5e7f2..582afab8df 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.parking_lot_core-0.9.10.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.parking_lot_core-0.9.10.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.percent-encoding-2.3.1.bazel b/extensions/prost/private/3rdparty/crates/BUILD.percent-encoding-2.3.1.bazel index 4a6a4e1914..2965628046 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.percent-encoding-2.3.1.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.percent-encoding-2.3.1.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.petgraph-0.6.5.bazel b/extensions/prost/private/3rdparty/crates/BUILD.petgraph-0.6.5.bazel index 865d8167d0..2d5f2aebf4 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.petgraph-0.6.5.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.petgraph-0.6.5.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.pin-project-1.1.5.bazel b/extensions/prost/private/3rdparty/crates/BUILD.pin-project-1.1.5.bazel index 63fbc52b77..644892e8bf 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.pin-project-1.1.5.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.pin-project-1.1.5.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.pin-project-internal-1.1.5.bazel b/extensions/prost/private/3rdparty/crates/BUILD.pin-project-internal-1.1.5.bazel index 86f01425ed..4067772614 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.pin-project-internal-1.1.5.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.pin-project-internal-1.1.5.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_proc_macro") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.pin-project-lite-0.2.14.bazel b/extensions/prost/private/3rdparty/crates/BUILD.pin-project-lite-0.2.14.bazel index c21e5aa871..d555dcc849 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.pin-project-lite-0.2.14.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.pin-project-lite-0.2.14.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.pin-utils-0.1.0.bazel b/extensions/prost/private/3rdparty/crates/BUILD.pin-utils-0.1.0.bazel index 417d0793b2..fd82037598 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.pin-utils-0.1.0.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.pin-utils-0.1.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.ppv-lite86-0.2.20.bazel b/extensions/prost/private/3rdparty/crates/BUILD.ppv-lite86-0.2.20.bazel index 8070d354d2..52ae48116f 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.ppv-lite86-0.2.20.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.ppv-lite86-0.2.20.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.prettyplease-0.2.22.bazel b/extensions/prost/private/3rdparty/crates/BUILD.prettyplease-0.2.22.bazel index 6e14ab1061..6b7fa92d83 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.prettyplease-0.2.22.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.prettyplease-0.2.22.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.proc-macro2-1.0.86.bazel b/extensions/prost/private/3rdparty/crates/BUILD.proc-macro2-1.0.86.bazel index 27a972c8b1..c0a08bb85d 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.proc-macro2-1.0.86.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.proc-macro2-1.0.86.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.prost-0.13.1.bazel b/extensions/prost/private/3rdparty/crates/BUILD.prost-0.13.1.bazel index f00f87d1cd..3c92eca5fc 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.prost-0.13.1.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.prost-0.13.1.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.prost-build-0.13.1.bazel b/extensions/prost/private/3rdparty/crates/BUILD.prost-build-0.13.1.bazel index 5fc3e965f2..a810fcad41 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.prost-build-0.13.1.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.prost-build-0.13.1.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.prost-derive-0.13.1.bazel b/extensions/prost/private/3rdparty/crates/BUILD.prost-derive-0.13.1.bazel index 4c22374077..316e48476e 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.prost-derive-0.13.1.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.prost-derive-0.13.1.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_proc_macro") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.prost-types-0.13.1.bazel b/extensions/prost/private/3rdparty/crates/BUILD.prost-types-0.13.1.bazel index f393578d7b..9ae5d3d929 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.prost-types-0.13.1.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.prost-types-0.13.1.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.protoc-gen-prost-0.4.0.bazel b/extensions/prost/private/3rdparty/crates/BUILD.protoc-gen-prost-0.4.0.bazel index 93c6d86b92..1cccde218f 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.protoc-gen-prost-0.4.0.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.protoc-gen-prost-0.4.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load( diff --git a/extensions/prost/private/3rdparty/crates/BUILD.protoc-gen-tonic-0.4.1.bazel b/extensions/prost/private/3rdparty/crates/BUILD.protoc-gen-tonic-0.4.1.bazel index e4ddf3b70c..734ebe8a5e 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.protoc-gen-tonic-0.4.1.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.protoc-gen-tonic-0.4.1.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load( diff --git a/extensions/prost/private/3rdparty/crates/BUILD.quote-1.0.37.bazel b/extensions/prost/private/3rdparty/crates/BUILD.quote-1.0.37.bazel index fbdef75e5e..e4e2b9de9a 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.quote-1.0.37.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.quote-1.0.37.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.rand-0.8.5.bazel b/extensions/prost/private/3rdparty/crates/BUILD.rand-0.8.5.bazel index 15c0697ed4..2d3dfcc1a2 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.rand-0.8.5.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.rand-0.8.5.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.rand_chacha-0.3.1.bazel b/extensions/prost/private/3rdparty/crates/BUILD.rand_chacha-0.3.1.bazel index ffeb7d12e5..01a2e8963f 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.rand_chacha-0.3.1.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.rand_chacha-0.3.1.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.rand_core-0.6.4.bazel b/extensions/prost/private/3rdparty/crates/BUILD.rand_core-0.6.4.bazel index 706f7769ab..f6a6577c54 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.rand_core-0.6.4.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.rand_core-0.6.4.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.redox_syscall-0.5.3.bazel b/extensions/prost/private/3rdparty/crates/BUILD.redox_syscall-0.5.3.bazel index 6813d4d85d..c2147a0cbe 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.redox_syscall-0.5.3.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.redox_syscall-0.5.3.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.regex-1.10.6.bazel b/extensions/prost/private/3rdparty/crates/BUILD.regex-1.10.6.bazel index aa50b4358b..d4cfbe906c 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.regex-1.10.6.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.regex-1.10.6.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.regex-automata-0.4.7.bazel b/extensions/prost/private/3rdparty/crates/BUILD.regex-automata-0.4.7.bazel index 5a3902e499..0b6b31fb9c 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.regex-automata-0.4.7.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.regex-automata-0.4.7.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.regex-syntax-0.8.4.bazel b/extensions/prost/private/3rdparty/crates/BUILD.regex-syntax-0.8.4.bazel index 81d0fa62b3..1523915406 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.regex-syntax-0.8.4.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.regex-syntax-0.8.4.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.rustc-demangle-0.1.24.bazel b/extensions/prost/private/3rdparty/crates/BUILD.rustc-demangle-0.1.24.bazel index 0e6cf4bebd..36c1df68db 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.rustc-demangle-0.1.24.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.rustc-demangle-0.1.24.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.rustix-0.38.34.bazel b/extensions/prost/private/3rdparty/crates/BUILD.rustix-0.38.34.bazel index 29816a0af9..94f633f991 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.rustix-0.38.34.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.rustix-0.38.34.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.rustversion-1.0.17.bazel b/extensions/prost/private/3rdparty/crates/BUILD.rustversion-1.0.17.bazel index b258fbe99a..064c9211b3 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.rustversion-1.0.17.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.rustversion-1.0.17.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.scopeguard-1.2.0.bazel b/extensions/prost/private/3rdparty/crates/BUILD.scopeguard-1.2.0.bazel index 67ed78899b..44dde8e008 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.scopeguard-1.2.0.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.scopeguard-1.2.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.serde-1.0.209.bazel b/extensions/prost/private/3rdparty/crates/BUILD.serde-1.0.209.bazel index e26bf1daa2..d20432c8a8 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.serde-1.0.209.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.serde-1.0.209.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.serde_derive-1.0.209.bazel b/extensions/prost/private/3rdparty/crates/BUILD.serde_derive-1.0.209.bazel index 2df7db41b4..970c320133 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.serde_derive-1.0.209.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.serde_derive-1.0.209.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_proc_macro") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.shlex-1.3.0.bazel b/extensions/prost/private/3rdparty/crates/BUILD.shlex-1.3.0.bazel index 08e3729abe..78df0e20d7 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.shlex-1.3.0.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.shlex-1.3.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.signal-hook-registry-1.4.2.bazel b/extensions/prost/private/3rdparty/crates/BUILD.signal-hook-registry-1.4.2.bazel index 3c49e7cf3a..e0a1ddf46f 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.signal-hook-registry-1.4.2.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.signal-hook-registry-1.4.2.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.slab-0.4.9.bazel b/extensions/prost/private/3rdparty/crates/BUILD.slab-0.4.9.bazel index e0ecf490a7..bab2db75a6 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.slab-0.4.9.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.slab-0.4.9.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.smallvec-1.13.2.bazel b/extensions/prost/private/3rdparty/crates/BUILD.smallvec-1.13.2.bazel index 7c92519c19..58c67730d7 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.smallvec-1.13.2.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.smallvec-1.13.2.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.socket2-0.5.7.bazel b/extensions/prost/private/3rdparty/crates/BUILD.socket2-0.5.7.bazel index 19b0137a6d..641fe5dd6c 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.socket2-0.5.7.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.socket2-0.5.7.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.syn-2.0.76.bazel b/extensions/prost/private/3rdparty/crates/BUILD.syn-2.0.76.bazel index 89a3aaaf5a..f88fa0788d 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.syn-2.0.76.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.syn-2.0.76.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.sync_wrapper-0.1.2.bazel b/extensions/prost/private/3rdparty/crates/BUILD.sync_wrapper-0.1.2.bazel index d0df6934b1..9085a72b4b 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.sync_wrapper-0.1.2.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.sync_wrapper-0.1.2.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.sync_wrapper-1.0.1.bazel b/extensions/prost/private/3rdparty/crates/BUILD.sync_wrapper-1.0.1.bazel index 09d2e129fc..f20041d73c 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.sync_wrapper-1.0.1.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.sync_wrapper-1.0.1.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.tempfile-3.12.0.bazel b/extensions/prost/private/3rdparty/crates/BUILD.tempfile-3.12.0.bazel index 596fd9ecf5..90ee7776eb 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.tempfile-3.12.0.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.tempfile-3.12.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.tokio-1.39.3.bazel b/extensions/prost/private/3rdparty/crates/BUILD.tokio-1.39.3.bazel index 37cb820971..30ccd49653 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.tokio-1.39.3.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.tokio-1.39.3.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.tokio-macros-2.4.0.bazel b/extensions/prost/private/3rdparty/crates/BUILD.tokio-macros-2.4.0.bazel index 2b692dde6a..8122b918a6 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.tokio-macros-2.4.0.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.tokio-macros-2.4.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_proc_macro") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.tokio-stream-0.1.15.bazel b/extensions/prost/private/3rdparty/crates/BUILD.tokio-stream-0.1.15.bazel index 751bcdeaf5..7d15ff8bc4 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.tokio-stream-0.1.15.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.tokio-stream-0.1.15.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.tokio-util-0.7.11.bazel b/extensions/prost/private/3rdparty/crates/BUILD.tokio-util-0.7.11.bazel index 23e570b785..bbfdf5b258 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.tokio-util-0.7.11.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.tokio-util-0.7.11.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.tonic-0.12.1.bazel b/extensions/prost/private/3rdparty/crates/BUILD.tonic-0.12.1.bazel index 10c47046b4..8d84f73544 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.tonic-0.12.1.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.tonic-0.12.1.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.tonic-build-0.12.1.bazel b/extensions/prost/private/3rdparty/crates/BUILD.tonic-build-0.12.1.bazel index 09878b998b..8d8089a649 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.tonic-build-0.12.1.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.tonic-build-0.12.1.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.tower-0.4.13.bazel b/extensions/prost/private/3rdparty/crates/BUILD.tower-0.4.13.bazel index 9fc5dfc46e..cb57a0ea7c 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.tower-0.4.13.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.tower-0.4.13.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.tower-layer-0.3.3.bazel b/extensions/prost/private/3rdparty/crates/BUILD.tower-layer-0.3.3.bazel index f59f7906f2..3ae3de7632 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.tower-layer-0.3.3.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.tower-layer-0.3.3.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.tower-service-0.3.3.bazel b/extensions/prost/private/3rdparty/crates/BUILD.tower-service-0.3.3.bazel index 489e10640e..f9fa340c63 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.tower-service-0.3.3.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.tower-service-0.3.3.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.tracing-0.1.40.bazel b/extensions/prost/private/3rdparty/crates/BUILD.tracing-0.1.40.bazel index 41abf86bfb..c4ac87a2d2 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.tracing-0.1.40.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.tracing-0.1.40.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.tracing-attributes-0.1.27.bazel b/extensions/prost/private/3rdparty/crates/BUILD.tracing-attributes-0.1.27.bazel index 18158ca14f..cce1e0fcc2 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.tracing-attributes-0.1.27.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.tracing-attributes-0.1.27.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_proc_macro") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.tracing-core-0.1.32.bazel b/extensions/prost/private/3rdparty/crates/BUILD.tracing-core-0.1.32.bazel index ea72ba840f..876ba199d4 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.tracing-core-0.1.32.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.tracing-core-0.1.32.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.try-lock-0.2.5.bazel b/extensions/prost/private/3rdparty/crates/BUILD.try-lock-0.2.5.bazel index ebfab94074..5b2d0436a9 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.try-lock-0.2.5.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.try-lock-0.2.5.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.unicode-ident-1.0.12.bazel b/extensions/prost/private/3rdparty/crates/BUILD.unicode-ident-1.0.12.bazel index c5573fbd46..ae2a123d38 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.unicode-ident-1.0.12.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.unicode-ident-1.0.12.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.want-0.3.1.bazel b/extensions/prost/private/3rdparty/crates/BUILD.want-0.3.1.bazel index 2b5a54d419..f36ba8c1c2 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.want-0.3.1.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.want-0.3.1.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel b/extensions/prost/private/3rdparty/crates/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel index dd2c39d196..297784c9f0 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.windows-sys-0.52.0.bazel b/extensions/prost/private/3rdparty/crates/BUILD.windows-sys-0.52.0.bazel index 2b468887e0..0e860193d8 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.windows-sys-0.52.0.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.windows-sys-0.52.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.windows-sys-0.59.0.bazel b/extensions/prost/private/3rdparty/crates/BUILD.windows-sys-0.59.0.bazel index 4eccd7ff18..c2782a831d 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.windows-sys-0.59.0.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.windows-sys-0.59.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.windows-targets-0.52.6.bazel b/extensions/prost/private/3rdparty/crates/BUILD.windows-targets-0.52.6.bazel index 2e2eded83d..97d15579cb 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.windows-targets-0.52.6.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.windows-targets-0.52.6.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.windows_aarch64_gnullvm-0.52.6.bazel b/extensions/prost/private/3rdparty/crates/BUILD.windows_aarch64_gnullvm-0.52.6.bazel index efeae83c75..5b2dcb4e7c 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.windows_aarch64_gnullvm-0.52.6.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.windows_aarch64_gnullvm-0.52.6.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.windows_aarch64_msvc-0.52.6.bazel b/extensions/prost/private/3rdparty/crates/BUILD.windows_aarch64_msvc-0.52.6.bazel index 1eff6b9710..76d6b4d856 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.windows_aarch64_msvc-0.52.6.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.windows_aarch64_msvc-0.52.6.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.windows_i686_gnu-0.52.6.bazel b/extensions/prost/private/3rdparty/crates/BUILD.windows_i686_gnu-0.52.6.bazel index 52c264d13d..4017691fca 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.windows_i686_gnu-0.52.6.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.windows_i686_gnu-0.52.6.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.windows_i686_gnullvm-0.52.6.bazel b/extensions/prost/private/3rdparty/crates/BUILD.windows_i686_gnullvm-0.52.6.bazel index cf5407eca5..c7dcc86c82 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.windows_i686_gnullvm-0.52.6.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.windows_i686_gnullvm-0.52.6.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.windows_i686_msvc-0.52.6.bazel b/extensions/prost/private/3rdparty/crates/BUILD.windows_i686_msvc-0.52.6.bazel index e357fa370d..338c2d696c 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.windows_i686_msvc-0.52.6.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.windows_i686_msvc-0.52.6.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.windows_x86_64_gnu-0.52.6.bazel b/extensions/prost/private/3rdparty/crates/BUILD.windows_x86_64_gnu-0.52.6.bazel index c1582b21ae..869c7972a9 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.windows_x86_64_gnu-0.52.6.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.windows_x86_64_gnu-0.52.6.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.windows_x86_64_gnullvm-0.52.6.bazel b/extensions/prost/private/3rdparty/crates/BUILD.windows_x86_64_gnullvm-0.52.6.bazel index 67323f2872..8113334fb9 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.windows_x86_64_gnullvm-0.52.6.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.windows_x86_64_gnullvm-0.52.6.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.windows_x86_64_msvc-0.52.6.bazel b/extensions/prost/private/3rdparty/crates/BUILD.windows_x86_64_msvc-0.52.6.bazel index 962f85d5db..a120d6c651 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.windows_x86_64_msvc-0.52.6.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.windows_x86_64_msvc-0.52.6.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.zerocopy-0.7.35.bazel b/extensions/prost/private/3rdparty/crates/BUILD.zerocopy-0.7.35.bazel index 6c4aa3c1cd..53a7c3b7a5 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.zerocopy-0.7.35.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.zerocopy-0.7.35.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/prost/private/3rdparty/crates/BUILD.zerocopy-derive-0.7.35.bazel b/extensions/prost/private/3rdparty/crates/BUILD.zerocopy-derive-0.7.35.bazel index ed33895f1c..38e9c65117 100644 --- a/extensions/prost/private/3rdparty/crates/BUILD.zerocopy-derive-0.7.35.bazel +++ b/extensions/prost/private/3rdparty/crates/BUILD.zerocopy-derive-0.7.35.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_proc_macro") diff --git a/extensions/prost/private/3rdparty/crates/crates.bzl b/extensions/prost/private/3rdparty/crates/crates.bzl index c8a85e1557..369be3f459 100644 --- a/extensions/prost/private/3rdparty/crates/crates.bzl +++ b/extensions/prost/private/3rdparty/crates/crates.bzl @@ -12,7 +12,7 @@ load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") load("@rules_rust//crate_universe/private:crates_vendor.bzl", "crates_vendor_remote_repository") # buildifier: disable=bzl-visibility -load("@rules_rust//proto/prost/private/3rdparty/crates:defs.bzl", _crate_repositories = "crate_repositories") +load("@rules_rust_ext//prost/private/3rdparty/crates:defs.bzl", _crate_repositories = "crate_repositories") def crate_repositories(): """Generates repositories for vendored crates. @@ -23,8 +23,8 @@ def crate_repositories(): maybe( crates_vendor_remote_repository, name = "rules_rust_prost", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.bazel"), - defs_module = Label("@rules_rust//proto/prost/private/3rdparty/crates:defs.bzl"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.bazel"), + defs_module = Label("@rules_rust_ext//prost/private/3rdparty/crates:defs.bzl"), ) direct_deps = [struct(repo = "rules_rust_prost", is_dev_dep = False)] diff --git a/extensions/prost/private/3rdparty/crates/defs.bzl b/extensions/prost/private/3rdparty/crates/defs.bzl index ed10ed8271..63160f0e4d 100644 --- a/extensions/prost/private/3rdparty/crates/defs.bzl +++ b/extensions/prost/private/3rdparty/crates/defs.bzl @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/prost/private/3rdparty:crates_vendor +# bazel run @//prost/private/3rdparty:crates_vendor ############################################################################### """ # `crates_repository` API @@ -437,7 +437,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/addr2line/0.22.0/download"], strip_prefix = "addr2line-0.22.0", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.addr2line-0.22.0.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.addr2line-0.22.0.bazel"), ) maybe( @@ -447,7 +447,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/adler/1.0.2/download"], strip_prefix = "adler-1.0.2", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.adler-1.0.2.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.adler-1.0.2.bazel"), ) maybe( @@ -457,7 +457,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/aho-corasick/1.1.3/download"], strip_prefix = "aho-corasick-1.1.3", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.aho-corasick-1.1.3.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.aho-corasick-1.1.3.bazel"), ) maybe( @@ -467,7 +467,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/anyhow/1.0.86/download"], strip_prefix = "anyhow-1.0.86", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.anyhow-1.0.86.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.anyhow-1.0.86.bazel"), ) maybe( @@ -477,7 +477,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/async-stream/0.3.5/download"], strip_prefix = "async-stream-0.3.5", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.async-stream-0.3.5.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.async-stream-0.3.5.bazel"), ) maybe( @@ -487,7 +487,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/async-stream-impl/0.3.5/download"], strip_prefix = "async-stream-impl-0.3.5", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.async-stream-impl-0.3.5.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.async-stream-impl-0.3.5.bazel"), ) maybe( @@ -497,7 +497,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/async-trait/0.1.81/download"], strip_prefix = "async-trait-0.1.81", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.async-trait-0.1.81.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.async-trait-0.1.81.bazel"), ) maybe( @@ -507,7 +507,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/atomic-waker/1.1.2/download"], strip_prefix = "atomic-waker-1.1.2", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.atomic-waker-1.1.2.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.atomic-waker-1.1.2.bazel"), ) maybe( @@ -517,7 +517,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/autocfg/1.3.0/download"], strip_prefix = "autocfg-1.3.0", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.autocfg-1.3.0.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.autocfg-1.3.0.bazel"), ) maybe( @@ -527,7 +527,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/axum/0.7.5/download"], strip_prefix = "axum-0.7.5", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.axum-0.7.5.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.axum-0.7.5.bazel"), ) maybe( @@ -537,7 +537,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/axum-core/0.4.3/download"], strip_prefix = "axum-core-0.4.3", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.axum-core-0.4.3.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.axum-core-0.4.3.bazel"), ) maybe( @@ -547,7 +547,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/backtrace/0.3.73/download"], strip_prefix = "backtrace-0.3.73", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.backtrace-0.3.73.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.backtrace-0.3.73.bazel"), ) maybe( @@ -557,7 +557,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/base64/0.22.1/download"], strip_prefix = "base64-0.22.1", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.base64-0.22.1.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.base64-0.22.1.bazel"), ) maybe( @@ -567,7 +567,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/bitflags/2.6.0/download"], strip_prefix = "bitflags-2.6.0", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.bitflags-2.6.0.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.bitflags-2.6.0.bazel"), ) maybe( @@ -577,7 +577,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/byteorder/1.5.0/download"], strip_prefix = "byteorder-1.5.0", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.byteorder-1.5.0.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.byteorder-1.5.0.bazel"), ) maybe( @@ -587,7 +587,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/bytes/1.7.1/download"], strip_prefix = "bytes-1.7.1", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.bytes-1.7.1.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.bytes-1.7.1.bazel"), ) maybe( @@ -597,7 +597,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/cc/1.1.14/download"], strip_prefix = "cc-1.1.14", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.cc-1.1.14.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.cc-1.1.14.bazel"), ) maybe( @@ -607,7 +607,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/cfg-if/1.0.0/download"], strip_prefix = "cfg-if-1.0.0", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.cfg-if-1.0.0.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.cfg-if-1.0.0.bazel"), ) maybe( @@ -617,7 +617,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/either/1.13.0/download"], strip_prefix = "either-1.13.0", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.either-1.13.0.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.either-1.13.0.bazel"), ) maybe( @@ -627,7 +627,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/equivalent/1.0.1/download"], strip_prefix = "equivalent-1.0.1", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.equivalent-1.0.1.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.equivalent-1.0.1.bazel"), ) maybe( @@ -637,7 +637,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/errno/0.3.9/download"], strip_prefix = "errno-0.3.9", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.errno-0.3.9.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.errno-0.3.9.bazel"), ) maybe( @@ -647,7 +647,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/fastrand/2.1.1/download"], strip_prefix = "fastrand-2.1.1", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.fastrand-2.1.1.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.fastrand-2.1.1.bazel"), ) maybe( @@ -657,7 +657,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/fixedbitset/0.4.2/download"], strip_prefix = "fixedbitset-0.4.2", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.fixedbitset-0.4.2.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.fixedbitset-0.4.2.bazel"), ) maybe( @@ -667,7 +667,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/fnv/1.0.7/download"], strip_prefix = "fnv-1.0.7", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.fnv-1.0.7.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.fnv-1.0.7.bazel"), ) maybe( @@ -677,7 +677,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/futures-channel/0.3.30/download"], strip_prefix = "futures-channel-0.3.30", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.futures-channel-0.3.30.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.futures-channel-0.3.30.bazel"), ) maybe( @@ -687,7 +687,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/futures-core/0.3.30/download"], strip_prefix = "futures-core-0.3.30", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.futures-core-0.3.30.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.futures-core-0.3.30.bazel"), ) maybe( @@ -697,7 +697,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/futures-sink/0.3.30/download"], strip_prefix = "futures-sink-0.3.30", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.futures-sink-0.3.30.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.futures-sink-0.3.30.bazel"), ) maybe( @@ -707,7 +707,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/futures-task/0.3.30/download"], strip_prefix = "futures-task-0.3.30", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.futures-task-0.3.30.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.futures-task-0.3.30.bazel"), ) maybe( @@ -717,7 +717,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/futures-util/0.3.30/download"], strip_prefix = "futures-util-0.3.30", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.futures-util-0.3.30.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.futures-util-0.3.30.bazel"), ) maybe( @@ -727,7 +727,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/getrandom/0.2.15/download"], strip_prefix = "getrandom-0.2.15", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.getrandom-0.2.15.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.getrandom-0.2.15.bazel"), ) maybe( @@ -737,7 +737,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/gimli/0.29.0/download"], strip_prefix = "gimli-0.29.0", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.gimli-0.29.0.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.gimli-0.29.0.bazel"), ) maybe( @@ -747,7 +747,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/h2/0.4.6/download"], strip_prefix = "h2-0.4.6", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.h2-0.4.6.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.h2-0.4.6.bazel"), ) maybe( @@ -757,7 +757,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/hashbrown/0.12.3/download"], strip_prefix = "hashbrown-0.12.3", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.hashbrown-0.12.3.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.hashbrown-0.12.3.bazel"), ) maybe( @@ -767,7 +767,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/hashbrown/0.14.5/download"], strip_prefix = "hashbrown-0.14.5", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.hashbrown-0.14.5.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.hashbrown-0.14.5.bazel"), ) maybe( @@ -777,7 +777,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/heck/0.5.0/download"], strip_prefix = "heck-0.5.0", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.heck-0.5.0.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.heck-0.5.0.bazel"), ) maybe( @@ -787,7 +787,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/hermit-abi/0.3.9/download"], strip_prefix = "hermit-abi-0.3.9", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.hermit-abi-0.3.9.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.hermit-abi-0.3.9.bazel"), ) maybe( @@ -797,7 +797,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/http/1.1.0/download"], strip_prefix = "http-1.1.0", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.http-1.1.0.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.http-1.1.0.bazel"), ) maybe( @@ -807,7 +807,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/http-body/1.0.1/download"], strip_prefix = "http-body-1.0.1", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.http-body-1.0.1.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.http-body-1.0.1.bazel"), ) maybe( @@ -817,7 +817,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/http-body-util/0.1.2/download"], strip_prefix = "http-body-util-0.1.2", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.http-body-util-0.1.2.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.http-body-util-0.1.2.bazel"), ) maybe( @@ -827,7 +827,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/httparse/1.9.4/download"], strip_prefix = "httparse-1.9.4", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.httparse-1.9.4.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.httparse-1.9.4.bazel"), ) maybe( @@ -837,7 +837,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/httpdate/1.0.3/download"], strip_prefix = "httpdate-1.0.3", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.httpdate-1.0.3.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.httpdate-1.0.3.bazel"), ) maybe( @@ -847,7 +847,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/hyper/1.4.1/download"], strip_prefix = "hyper-1.4.1", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.hyper-1.4.1.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.hyper-1.4.1.bazel"), ) maybe( @@ -857,7 +857,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/hyper-timeout/0.5.1/download"], strip_prefix = "hyper-timeout-0.5.1", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.hyper-timeout-0.5.1.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.hyper-timeout-0.5.1.bazel"), ) maybe( @@ -867,7 +867,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/hyper-util/0.1.7/download"], strip_prefix = "hyper-util-0.1.7", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.hyper-util-0.1.7.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.hyper-util-0.1.7.bazel"), ) maybe( @@ -877,7 +877,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/indexmap/1.9.3/download"], strip_prefix = "indexmap-1.9.3", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.indexmap-1.9.3.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.indexmap-1.9.3.bazel"), ) maybe( @@ -887,7 +887,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/indexmap/2.4.0/download"], strip_prefix = "indexmap-2.4.0", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.indexmap-2.4.0.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.indexmap-2.4.0.bazel"), ) maybe( @@ -897,7 +897,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/itertools/0.13.0/download"], strip_prefix = "itertools-0.13.0", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.itertools-0.13.0.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.itertools-0.13.0.bazel"), ) maybe( @@ -907,7 +907,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/itoa/1.0.11/download"], strip_prefix = "itoa-1.0.11", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.itoa-1.0.11.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.itoa-1.0.11.bazel"), ) maybe( @@ -917,7 +917,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/libc/0.2.158/download"], strip_prefix = "libc-0.2.158", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.libc-0.2.158.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.libc-0.2.158.bazel"), ) maybe( @@ -927,7 +927,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/linux-raw-sys/0.4.14/download"], strip_prefix = "linux-raw-sys-0.4.14", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.linux-raw-sys-0.4.14.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.linux-raw-sys-0.4.14.bazel"), ) maybe( @@ -937,7 +937,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/lock_api/0.4.12/download"], strip_prefix = "lock_api-0.4.12", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.lock_api-0.4.12.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.lock_api-0.4.12.bazel"), ) maybe( @@ -947,7 +947,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/log/0.4.22/download"], strip_prefix = "log-0.4.22", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.log-0.4.22.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.log-0.4.22.bazel"), ) maybe( @@ -957,7 +957,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/matchit/0.7.3/download"], strip_prefix = "matchit-0.7.3", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.matchit-0.7.3.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.matchit-0.7.3.bazel"), ) maybe( @@ -967,7 +967,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/memchr/2.7.4/download"], strip_prefix = "memchr-2.7.4", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.memchr-2.7.4.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.memchr-2.7.4.bazel"), ) maybe( @@ -977,7 +977,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/mime/0.3.17/download"], strip_prefix = "mime-0.3.17", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.mime-0.3.17.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.mime-0.3.17.bazel"), ) maybe( @@ -987,7 +987,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/miniz_oxide/0.7.4/download"], strip_prefix = "miniz_oxide-0.7.4", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.miniz_oxide-0.7.4.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.miniz_oxide-0.7.4.bazel"), ) maybe( @@ -997,7 +997,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/mio/1.0.2/download"], strip_prefix = "mio-1.0.2", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.mio-1.0.2.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.mio-1.0.2.bazel"), ) maybe( @@ -1007,7 +1007,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/multimap/0.10.0/download"], strip_prefix = "multimap-0.10.0", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.multimap-0.10.0.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.multimap-0.10.0.bazel"), ) maybe( @@ -1017,7 +1017,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/object/0.36.3/download"], strip_prefix = "object-0.36.3", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.object-0.36.3.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.object-0.36.3.bazel"), ) maybe( @@ -1027,7 +1027,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/once_cell/1.19.0/download"], strip_prefix = "once_cell-1.19.0", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.once_cell-1.19.0.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.once_cell-1.19.0.bazel"), ) maybe( @@ -1037,7 +1037,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/parking_lot/0.12.3/download"], strip_prefix = "parking_lot-0.12.3", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.parking_lot-0.12.3.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.parking_lot-0.12.3.bazel"), ) maybe( @@ -1047,7 +1047,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/parking_lot_core/0.9.10/download"], strip_prefix = "parking_lot_core-0.9.10", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.parking_lot_core-0.9.10.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.parking_lot_core-0.9.10.bazel"), ) maybe( @@ -1057,7 +1057,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/percent-encoding/2.3.1/download"], strip_prefix = "percent-encoding-2.3.1", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.percent-encoding-2.3.1.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.percent-encoding-2.3.1.bazel"), ) maybe( @@ -1067,7 +1067,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/petgraph/0.6.5/download"], strip_prefix = "petgraph-0.6.5", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.petgraph-0.6.5.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.petgraph-0.6.5.bazel"), ) maybe( @@ -1077,7 +1077,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/pin-project/1.1.5/download"], strip_prefix = "pin-project-1.1.5", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.pin-project-1.1.5.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.pin-project-1.1.5.bazel"), ) maybe( @@ -1087,7 +1087,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/pin-project-internal/1.1.5/download"], strip_prefix = "pin-project-internal-1.1.5", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.pin-project-internal-1.1.5.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.pin-project-internal-1.1.5.bazel"), ) maybe( @@ -1097,7 +1097,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/pin-project-lite/0.2.14/download"], strip_prefix = "pin-project-lite-0.2.14", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.pin-project-lite-0.2.14.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.pin-project-lite-0.2.14.bazel"), ) maybe( @@ -1107,7 +1107,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/pin-utils/0.1.0/download"], strip_prefix = "pin-utils-0.1.0", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.pin-utils-0.1.0.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.pin-utils-0.1.0.bazel"), ) maybe( @@ -1117,7 +1117,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/ppv-lite86/0.2.20/download"], strip_prefix = "ppv-lite86-0.2.20", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.ppv-lite86-0.2.20.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.ppv-lite86-0.2.20.bazel"), ) maybe( @@ -1127,7 +1127,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/prettyplease/0.2.22/download"], strip_prefix = "prettyplease-0.2.22", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.prettyplease-0.2.22.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.prettyplease-0.2.22.bazel"), ) maybe( @@ -1137,7 +1137,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/proc-macro2/1.0.86/download"], strip_prefix = "proc-macro2-1.0.86", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.proc-macro2-1.0.86.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.proc-macro2-1.0.86.bazel"), ) maybe( @@ -1147,7 +1147,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/prost/0.13.1/download"], strip_prefix = "prost-0.13.1", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.prost-0.13.1.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.prost-0.13.1.bazel"), ) maybe( @@ -1157,7 +1157,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/prost-build/0.13.1/download"], strip_prefix = "prost-build-0.13.1", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.prost-build-0.13.1.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.prost-build-0.13.1.bazel"), ) maybe( @@ -1167,7 +1167,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/prost-derive/0.13.1/download"], strip_prefix = "prost-derive-0.13.1", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.prost-derive-0.13.1.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.prost-derive-0.13.1.bazel"), ) maybe( @@ -1177,7 +1177,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/prost-types/0.13.1/download"], strip_prefix = "prost-types-0.13.1", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.prost-types-0.13.1.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.prost-types-0.13.1.bazel"), ) maybe( @@ -1187,7 +1187,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/protoc-gen-prost/0.4.0/download"], strip_prefix = "protoc-gen-prost-0.4.0", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.protoc-gen-prost-0.4.0.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.protoc-gen-prost-0.4.0.bazel"), ) maybe( @@ -1197,7 +1197,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/protoc-gen-tonic/0.4.1/download"], strip_prefix = "protoc-gen-tonic-0.4.1", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.protoc-gen-tonic-0.4.1.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.protoc-gen-tonic-0.4.1.bazel"), ) maybe( @@ -1207,7 +1207,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/quote/1.0.37/download"], strip_prefix = "quote-1.0.37", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.quote-1.0.37.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.quote-1.0.37.bazel"), ) maybe( @@ -1217,7 +1217,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/rand/0.8.5/download"], strip_prefix = "rand-0.8.5", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.rand-0.8.5.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.rand-0.8.5.bazel"), ) maybe( @@ -1227,7 +1227,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/rand_chacha/0.3.1/download"], strip_prefix = "rand_chacha-0.3.1", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.rand_chacha-0.3.1.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.rand_chacha-0.3.1.bazel"), ) maybe( @@ -1237,7 +1237,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/rand_core/0.6.4/download"], strip_prefix = "rand_core-0.6.4", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.rand_core-0.6.4.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.rand_core-0.6.4.bazel"), ) maybe( @@ -1247,7 +1247,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/redox_syscall/0.5.3/download"], strip_prefix = "redox_syscall-0.5.3", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.redox_syscall-0.5.3.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.redox_syscall-0.5.3.bazel"), ) maybe( @@ -1257,7 +1257,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/regex/1.10.6/download"], strip_prefix = "regex-1.10.6", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.regex-1.10.6.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.regex-1.10.6.bazel"), ) maybe( @@ -1267,7 +1267,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/regex-automata/0.4.7/download"], strip_prefix = "regex-automata-0.4.7", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.regex-automata-0.4.7.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.regex-automata-0.4.7.bazel"), ) maybe( @@ -1277,7 +1277,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/regex-syntax/0.8.4/download"], strip_prefix = "regex-syntax-0.8.4", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.regex-syntax-0.8.4.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.regex-syntax-0.8.4.bazel"), ) maybe( @@ -1287,7 +1287,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/rustc-demangle/0.1.24/download"], strip_prefix = "rustc-demangle-0.1.24", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.rustc-demangle-0.1.24.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.rustc-demangle-0.1.24.bazel"), ) maybe( @@ -1297,7 +1297,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/rustix/0.38.34/download"], strip_prefix = "rustix-0.38.34", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.rustix-0.38.34.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.rustix-0.38.34.bazel"), ) maybe( @@ -1307,7 +1307,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/rustversion/1.0.17/download"], strip_prefix = "rustversion-1.0.17", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.rustversion-1.0.17.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.rustversion-1.0.17.bazel"), ) maybe( @@ -1317,7 +1317,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/scopeguard/1.2.0/download"], strip_prefix = "scopeguard-1.2.0", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.scopeguard-1.2.0.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.scopeguard-1.2.0.bazel"), ) maybe( @@ -1327,7 +1327,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/serde/1.0.209/download"], strip_prefix = "serde-1.0.209", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.serde-1.0.209.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.serde-1.0.209.bazel"), ) maybe( @@ -1337,7 +1337,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/serde_derive/1.0.209/download"], strip_prefix = "serde_derive-1.0.209", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.serde_derive-1.0.209.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.serde_derive-1.0.209.bazel"), ) maybe( @@ -1347,7 +1347,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/shlex/1.3.0/download"], strip_prefix = "shlex-1.3.0", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.shlex-1.3.0.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.shlex-1.3.0.bazel"), ) maybe( @@ -1357,7 +1357,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/signal-hook-registry/1.4.2/download"], strip_prefix = "signal-hook-registry-1.4.2", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.signal-hook-registry-1.4.2.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.signal-hook-registry-1.4.2.bazel"), ) maybe( @@ -1367,7 +1367,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/slab/0.4.9/download"], strip_prefix = "slab-0.4.9", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.slab-0.4.9.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.slab-0.4.9.bazel"), ) maybe( @@ -1377,7 +1377,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/smallvec/1.13.2/download"], strip_prefix = "smallvec-1.13.2", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.smallvec-1.13.2.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.smallvec-1.13.2.bazel"), ) maybe( @@ -1387,7 +1387,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/socket2/0.5.7/download"], strip_prefix = "socket2-0.5.7", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.socket2-0.5.7.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.socket2-0.5.7.bazel"), ) maybe( @@ -1397,7 +1397,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/syn/2.0.76/download"], strip_prefix = "syn-2.0.76", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.syn-2.0.76.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.syn-2.0.76.bazel"), ) maybe( @@ -1407,7 +1407,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/sync_wrapper/0.1.2/download"], strip_prefix = "sync_wrapper-0.1.2", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.sync_wrapper-0.1.2.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.sync_wrapper-0.1.2.bazel"), ) maybe( @@ -1417,7 +1417,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/sync_wrapper/1.0.1/download"], strip_prefix = "sync_wrapper-1.0.1", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.sync_wrapper-1.0.1.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.sync_wrapper-1.0.1.bazel"), ) maybe( @@ -1427,7 +1427,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tempfile/3.12.0/download"], strip_prefix = "tempfile-3.12.0", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.tempfile-3.12.0.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.tempfile-3.12.0.bazel"), ) maybe( @@ -1437,7 +1437,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tokio/1.39.3/download"], strip_prefix = "tokio-1.39.3", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.tokio-1.39.3.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.tokio-1.39.3.bazel"), ) maybe( @@ -1447,7 +1447,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tokio-macros/2.4.0/download"], strip_prefix = "tokio-macros-2.4.0", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.tokio-macros-2.4.0.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.tokio-macros-2.4.0.bazel"), ) maybe( @@ -1457,7 +1457,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tokio-stream/0.1.15/download"], strip_prefix = "tokio-stream-0.1.15", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.tokio-stream-0.1.15.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.tokio-stream-0.1.15.bazel"), ) maybe( @@ -1467,7 +1467,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tokio-util/0.7.11/download"], strip_prefix = "tokio-util-0.7.11", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.tokio-util-0.7.11.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.tokio-util-0.7.11.bazel"), ) maybe( @@ -1477,7 +1477,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tonic/0.12.1/download"], strip_prefix = "tonic-0.12.1", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.tonic-0.12.1.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.tonic-0.12.1.bazel"), ) maybe( @@ -1487,7 +1487,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tonic-build/0.12.1/download"], strip_prefix = "tonic-build-0.12.1", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.tonic-build-0.12.1.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.tonic-build-0.12.1.bazel"), ) maybe( @@ -1497,7 +1497,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tower/0.4.13/download"], strip_prefix = "tower-0.4.13", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.tower-0.4.13.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.tower-0.4.13.bazel"), ) maybe( @@ -1507,7 +1507,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tower-layer/0.3.3/download"], strip_prefix = "tower-layer-0.3.3", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.tower-layer-0.3.3.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.tower-layer-0.3.3.bazel"), ) maybe( @@ -1517,7 +1517,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tower-service/0.3.3/download"], strip_prefix = "tower-service-0.3.3", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.tower-service-0.3.3.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.tower-service-0.3.3.bazel"), ) maybe( @@ -1527,7 +1527,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tracing/0.1.40/download"], strip_prefix = "tracing-0.1.40", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.tracing-0.1.40.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.tracing-0.1.40.bazel"), ) maybe( @@ -1537,7 +1537,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tracing-attributes/0.1.27/download"], strip_prefix = "tracing-attributes-0.1.27", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.tracing-attributes-0.1.27.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.tracing-attributes-0.1.27.bazel"), ) maybe( @@ -1547,7 +1547,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tracing-core/0.1.32/download"], strip_prefix = "tracing-core-0.1.32", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.tracing-core-0.1.32.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.tracing-core-0.1.32.bazel"), ) maybe( @@ -1557,7 +1557,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/try-lock/0.2.5/download"], strip_prefix = "try-lock-0.2.5", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.try-lock-0.2.5.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.try-lock-0.2.5.bazel"), ) maybe( @@ -1567,7 +1567,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/unicode-ident/1.0.12/download"], strip_prefix = "unicode-ident-1.0.12", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.unicode-ident-1.0.12.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.unicode-ident-1.0.12.bazel"), ) maybe( @@ -1577,7 +1577,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/want/0.3.1/download"], strip_prefix = "want-0.3.1", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.want-0.3.1.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.want-0.3.1.bazel"), ) maybe( @@ -1587,7 +1587,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/wasi/0.11.0+wasi-snapshot-preview1/download"], strip_prefix = "wasi-0.11.0+wasi-snapshot-preview1", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel"), ) maybe( @@ -1597,7 +1597,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/windows-sys/0.52.0/download"], strip_prefix = "windows-sys-0.52.0", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.windows-sys-0.52.0.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.windows-sys-0.52.0.bazel"), ) maybe( @@ -1607,7 +1607,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/windows-sys/0.59.0/download"], strip_prefix = "windows-sys-0.59.0", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.windows-sys-0.59.0.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.windows-sys-0.59.0.bazel"), ) maybe( @@ -1617,7 +1617,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/windows-targets/0.52.6/download"], strip_prefix = "windows-targets-0.52.6", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.windows-targets-0.52.6.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.windows-targets-0.52.6.bazel"), ) maybe( @@ -1627,7 +1627,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/windows_aarch64_gnullvm/0.52.6/download"], strip_prefix = "windows_aarch64_gnullvm-0.52.6", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.windows_aarch64_gnullvm-0.52.6.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.windows_aarch64_gnullvm-0.52.6.bazel"), ) maybe( @@ -1637,7 +1637,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/windows_aarch64_msvc/0.52.6/download"], strip_prefix = "windows_aarch64_msvc-0.52.6", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.windows_aarch64_msvc-0.52.6.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.windows_aarch64_msvc-0.52.6.bazel"), ) maybe( @@ -1647,7 +1647,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/windows_i686_gnu/0.52.6/download"], strip_prefix = "windows_i686_gnu-0.52.6", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.windows_i686_gnu-0.52.6.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.windows_i686_gnu-0.52.6.bazel"), ) maybe( @@ -1657,7 +1657,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/windows_i686_gnullvm/0.52.6/download"], strip_prefix = "windows_i686_gnullvm-0.52.6", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.windows_i686_gnullvm-0.52.6.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.windows_i686_gnullvm-0.52.6.bazel"), ) maybe( @@ -1667,7 +1667,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/windows_i686_msvc/0.52.6/download"], strip_prefix = "windows_i686_msvc-0.52.6", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.windows_i686_msvc-0.52.6.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.windows_i686_msvc-0.52.6.bazel"), ) maybe( @@ -1677,7 +1677,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/windows_x86_64_gnu/0.52.6/download"], strip_prefix = "windows_x86_64_gnu-0.52.6", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.windows_x86_64_gnu-0.52.6.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.windows_x86_64_gnu-0.52.6.bazel"), ) maybe( @@ -1687,7 +1687,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/windows_x86_64_gnullvm/0.52.6/download"], strip_prefix = "windows_x86_64_gnullvm-0.52.6", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.windows_x86_64_gnullvm-0.52.6.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.windows_x86_64_gnullvm-0.52.6.bazel"), ) maybe( @@ -1697,7 +1697,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/windows_x86_64_msvc/0.52.6/download"], strip_prefix = "windows_x86_64_msvc-0.52.6", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.windows_x86_64_msvc-0.52.6.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.windows_x86_64_msvc-0.52.6.bazel"), ) maybe( @@ -1707,7 +1707,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/zerocopy/0.7.35/download"], strip_prefix = "zerocopy-0.7.35", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.zerocopy-0.7.35.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.zerocopy-0.7.35.bazel"), ) maybe( @@ -1717,7 +1717,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/zerocopy-derive/0.7.35/download"], strip_prefix = "zerocopy-derive-0.7.35", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.zerocopy-derive-0.7.35.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.zerocopy-derive-0.7.35.bazel"), ) return [ diff --git a/extensions/prost/private/BUILD.bazel b/extensions/prost/private/BUILD.bazel index e66bfefc79..d893d7c8dc 100644 --- a/extensions/prost/private/BUILD.bazel +++ b/extensions/prost/private/BUILD.bazel @@ -1,7 +1,6 @@ load("@bazel_skylib//:bzl_library.bzl", "bzl_library") -load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_test") -load("//proto/prost:defs.bzl", "rust_prost_toolchain") -load("//rust:defs.bzl", "rust_library_group") +load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_library_group", "rust_test") +load("//prost:defs.bzl", "rust_prost_toolchain") load(":prost.bzl", "RUST_EDITION", "current_prost_runtime") current_prost_runtime( @@ -28,40 +27,43 @@ rust_test( bzl_library( name = "bzl_lib", srcs = glob(["**/*.bzl"]), - visibility = ["//proto/prost:__pkg__"], + visibility = ["//prost:__pkg__"], deps = [ - "//proto/prost/private/3rdparty:bzl_lib", + "//prost/private/3rdparty:bzl_lib", + "@rules_proto//proto:defs", + "@rules_proto//proto:repositories", + "@rules_rust//rust:bzl_lib", ], ) rust_library_group( name = "prost_runtime", visibility = [ - "//proto/prost:__subpackages__", + "//prost:__subpackages__", ], deps = [ - "//proto/prost/private/3rdparty/crates:prost", + "//prost/private/3rdparty/crates:prost", ], ) rust_library_group( name = "tonic_runtime", visibility = [ - "//proto/prost:__subpackages__", + "//prost:__subpackages__", ], deps = [ ":prost_runtime", - "//proto/prost/private/3rdparty/crates:tonic", + "//prost/private/3rdparty/crates:tonic", ], ) rust_prost_toolchain( name = "default_prost_toolchain_impl", - prost_plugin = "//proto/prost/private/3rdparty/crates:protoc-gen-prost__protoc-gen-prost", + prost_plugin = "//prost/private/3rdparty/crates:protoc-gen-prost__protoc-gen-prost", prost_plugin_flag = "--plugin=protoc-gen-prost=%s", prost_runtime = ":prost_runtime", - prost_types = "//proto/prost/private/3rdparty/crates:prost-types", - tonic_plugin = "//proto/prost/private/3rdparty/crates:protoc-gen-tonic__protoc-gen-tonic", + prost_types = "//prost/private/3rdparty/crates:prost-types", + tonic_plugin = "//prost/private/3rdparty/crates:protoc-gen-tonic__protoc-gen-tonic", tonic_plugin_flag = "--plugin=protoc-gen-tonic=%s", tonic_runtime = ":tonic_runtime", ) diff --git a/extensions/prost/private/prost.bzl b/extensions/prost/private/prost.bzl index cf5e11c9e5..5a97cafbdd 100644 --- a/extensions/prost/private/prost.bzl +++ b/extensions/prost/private/prost.bzl @@ -2,27 +2,27 @@ load("@rules_proto//proto:defs.bzl", "ProtoInfo", "proto_common") load("@rules_proto//proto:proto_common.bzl", proto_toolchains = "toolchains") -load("//proto/prost:providers.bzl", "ProstProtoInfo") -load("//rust:defs.bzl", "rust_common") +load("@rules_rust//rust:defs.bzl", "rust_common") # buildifier: disable=bzl-visibility -load("//rust/private:providers.bzl", "RustAnalyzerGroupInfo", "RustAnalyzerInfo") +load("@rules_rust//rust/private:providers.bzl", "RustAnalyzerGroupInfo", "RustAnalyzerInfo") # buildifier: disable=bzl-visibility -load("//rust/private:rust.bzl", "RUSTC_ATTRS") +load("@rules_rust//rust/private:rust.bzl", "RUSTC_ATTRS") # buildifier: disable=bzl-visibility -load("//rust/private:rust_analyzer.bzl", "write_rust_analyzer_spec_file") +load("@rules_rust//rust/private:rust_analyzer.bzl", "write_rust_analyzer_spec_file") # buildifier: disable=bzl-visibility -load("//rust/private:rustc.bzl", "rustc_compile_action") +load("@rules_rust//rust/private:rustc.bzl", "rustc_compile_action") # buildifier: disable=bzl-visibility -load("//rust/private:utils.bzl", "can_build_metadata") +load("@rules_rust//rust/private:utils.bzl", "can_build_metadata") +load("//prost:providers.bzl", "ProstProtoInfo") RUST_EDITION = "2021" -TOOLCHAIN_TYPE = "@rules_rust//proto/prost:toolchain_type" +TOOLCHAIN_TYPE = "@rules_rust_ext//prost:toolchain_type" def _create_proto_lang_toolchain(ctx, prost_toolchain): proto_lang_toolchain = proto_common.ProtoLangToolchainInfo( @@ -288,7 +288,7 @@ rust_prost_aspect = aspect( attr_aspects = ["deps"], attrs = { "_collect_cc_coverage": attr.label( - default = Label("//util:collect_coverage"), + default = Label("@rules_rust//util:collect_coverage"), executable = True, cfg = "exec", ), @@ -301,7 +301,7 @@ rust_prost_aspect = aspect( doc = "The wrapper script for the Prost protoc plugin.", cfg = "exec", executable = True, - default = Label("//proto/prost/private:protoc_wrapper"), + default = Label("//prost/private:protoc_wrapper"), ), } | RUSTC_ATTRS, fragments = ["cpp"], @@ -444,7 +444,7 @@ rust_prost_toolchain = rule( ), }, **proto_toolchains.if_legacy_toolchain({ "_legacy_proto_toolchain": attr.label( - default = "//proto/protobuf:legacy_proto_toolchain", + default = "//protobuf:legacy_proto_toolchain", ), })), toolchains = proto_toolchains.use_toolchain("@rules_proto//proto:toolchain_type"), diff --git a/extensions/prost/private/repositories.bzl b/extensions/prost/private/repositories.bzl index f0afce9801..768d25d144 100644 --- a/extensions/prost/private/repositories.bzl +++ b/extensions/prost/private/repositories.bzl @@ -1,7 +1,7 @@ """Dependencies for Rust Prost rules""" -load("//proto/prost:repositories.bzl", _rust_prost_dependencies = "rust_prost_dependencies") -load("//proto/prost/private/3rdparty/crates:crates.bzl", "crate_repositories") +load("//prost:repositories.bzl", _rust_prost_dependencies = "rust_prost_dependencies") +load("//prost/private/3rdparty/crates:crates.bzl", "crate_repositories") def rust_prost_dependencies(): """Prost repository dependencies.""" @@ -18,4 +18,4 @@ def rust_prost_register_toolchains(register_toolchains = True): """ if register_toolchains: - native.register_toolchains(str(Label("//proto/prost:default_prost_toolchain"))) + native.register_toolchains(str(Label("//prost:default_prost_toolchain"))) diff --git a/extensions/prost/private/tests/camel_case/BUILD.bazel b/extensions/prost/private/tests/camel_case/BUILD.bazel index 1720ad28ef..d099424a0f 100644 --- a/extensions/prost/private/tests/camel_case/BUILD.bazel +++ b/extensions/prost/private/tests/camel_case/BUILD.bazel @@ -1,15 +1,15 @@ load("@rules_proto//proto:defs.bzl", "proto_library") -load("//proto/prost:defs.bzl", "rust_prost_library") -load("//rust:defs.bzl", "rust_test") +load("@rules_rust//rust:defs.bzl", "rust_test") +load("//prost:defs.bzl", "rust_prost_library") -package(default_visibility = ["//proto/prost/private/tests:__subpackages__"]) +package(default_visibility = ["//prost/private/tests:__subpackages__"]) proto_library( name = "camel_case_proto", srcs = [ "camel_case.proto", ], - strip_import_prefix = "/proto/prost/private/tests/camel_case", + strip_import_prefix = "/prost/private/tests/camel_case", ) proto_library( diff --git a/extensions/prost/private/tests/deps.bzl b/extensions/prost/private/tests/deps.bzl new file mode 100644 index 0000000000..1dc7fee396 --- /dev/null +++ b/extensions/prost/private/tests/deps.bzl @@ -0,0 +1,15 @@ +"""Prost test dependencies""" + +load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") +load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") + +def prost_test_deps(): + maybe( + http_archive, + name = "com_google_googleapis", + urls = [ + "https://github.com/googleapis/googleapis/archive/18becb1d1426feb7399db144d7beeb3284f1ccb0.zip", + ], + strip_prefix = "googleapis-18becb1d1426feb7399db144d7beeb3284f1ccb0", + sha256 = "b8c487191eb942361af905e40172644eab490190e717c3d09bf83e87f3994fff", + ) diff --git a/extensions/prost/private/tests/deps_transitive.bzl b/extensions/prost/private/tests/deps_transitive.bzl new file mode 100644 index 0000000000..b7045f5a73 --- /dev/null +++ b/extensions/prost/private/tests/deps_transitive.bzl @@ -0,0 +1,18 @@ +"""Prost test transitive dependencies""" + +load("@com_google_googleapis//:repository_rules.bzl", "switched_rules_by_language") + +def prost_test_transitive_deps(): + switched_rules_by_language( + name = "com_google_googleapis_imports", + cc = False, + csharp = False, + gapic = False, + go = False, + grpc = False, + java = False, + nodejs = False, + php = False, + python = False, + ruby = False, + ) diff --git a/extensions/prost/private/tests/keywords/BUILD.bazel b/extensions/prost/private/tests/keywords/BUILD.bazel index af598aefe3..b6f02909a4 100644 --- a/extensions/prost/private/tests/keywords/BUILD.bazel +++ b/extensions/prost/private/tests/keywords/BUILD.bazel @@ -1,15 +1,15 @@ load("@rules_proto//proto:defs.bzl", "proto_library") -load("//proto/prost:defs.bzl", "rust_prost_library") -load("//rust:defs.bzl", "rust_test") +load("@rules_rust//rust:defs.bzl", "rust_test") +load("//prost:defs.bzl", "rust_prost_library") -package(default_visibility = ["//proto/prost/private/tests:__subpackages__"]) +package(default_visibility = ["//prost/private/tests:__subpackages__"]) proto_library( name = "imported_keyword_proto", srcs = [ "imported_keyword.proto", ], - strip_import_prefix = "/proto/prost/private/tests/keywords", + strip_import_prefix = "/prost/private/tests/keywords", ) proto_library( @@ -17,7 +17,7 @@ proto_library( srcs = [ "mod_named_mod.proto", ], - strip_import_prefix = "/proto/prost/private/tests/keywords", + strip_import_prefix = "/prost/private/tests/keywords", deps = [ ":imported_keyword_proto", ], diff --git a/extensions/prost/private/tests/nesting/BUILD.bazel b/extensions/prost/private/tests/nesting/BUILD.bazel index d8642efe59..b2d03bffaa 100644 --- a/extensions/prost/private/tests/nesting/BUILD.bazel +++ b/extensions/prost/private/tests/nesting/BUILD.bazel @@ -1,8 +1,8 @@ load("@rules_proto//proto:defs.bzl", "proto_library") -load("//proto/prost:defs.bzl", "rust_prost_library") -load("//rust:defs.bzl", "rust_test") +load("@rules_rust//rust:defs.bzl", "rust_test") +load("//prost:defs.bzl", "rust_prost_library") -package(default_visibility = ["//proto/prost/private/tests:__subpackages__"]) +package(default_visibility = ["//prost/private/tests:__subpackages__"]) proto_library( name = "nested_messages_proto", diff --git a/extensions/prost/private/tests/package_imports/BUILD.bazel b/extensions/prost/private/tests/package_imports/BUILD.bazel index 20e313e216..85634b72aa 100644 --- a/extensions/prost/private/tests/package_imports/BUILD.bazel +++ b/extensions/prost/private/tests/package_imports/BUILD.bazel @@ -1,15 +1,15 @@ load("@rules_proto//proto:defs.bzl", "proto_library") -load("//proto/prost:defs.bzl", "rust_prost_library") -load("//rust:defs.bzl", "rust_test") +load("@rules_rust//rust:defs.bzl", "rust_test") +load("//prost:defs.bzl", "rust_prost_library") -package(default_visibility = ["//proto/prost/private/tests:__subpackages__"]) +package(default_visibility = ["//prost/private/tests:__subpackages__"]) proto_library( name = "package_import_proto", srcs = [ "package_import.proto", ], - strip_import_prefix = "/proto/prost/private/tests/package_imports", + strip_import_prefix = "/prost/private/tests/package_imports", ) rust_prost_library( @@ -22,7 +22,7 @@ proto_library( srcs = [ "package_importer.proto", ], - strip_import_prefix = "/proto/prost/private/tests/package_imports", + strip_import_prefix = "/prost/private/tests/package_imports", deps = [ ":package_import_proto", ], diff --git a/extensions/prost/private/tests/package_names/BUILD.bazel b/extensions/prost/private/tests/package_names/BUILD.bazel index 7c9cedc9b5..96149cfb58 100644 --- a/extensions/prost/private/tests/package_names/BUILD.bazel +++ b/extensions/prost/private/tests/package_names/BUILD.bazel @@ -1,8 +1,8 @@ load("@rules_proto//proto:defs.bzl", "proto_library") load("@rules_rust//rust:defs.bzl", "rust_test") -load("//proto/prost:defs.bzl", "rust_prost_library") +load("//prost:defs.bzl", "rust_prost_library") -package(default_visibility = ["//proto/prost/private/tests:__subpackages__"]) +package(default_visibility = ["//prost/private/tests:__subpackages__"]) proto_library( name = "pkg_empty_proto", diff --git a/extensions/prost/private/tests/remote/BUILD.bazel b/extensions/prost/private/tests/remote/BUILD.bazel index 58c0ad9dcb..5f1ba3c042 100644 --- a/extensions/prost/private/tests/remote/BUILD.bazel +++ b/extensions/prost/private/tests/remote/BUILD.bazel @@ -1,4 +1,4 @@ -load("//proto/prost:defs.bzl", "rust_prost_library") +load("//prost:defs.bzl", "rust_prost_library") rust_prost_library( name = "annotations_rs_proto", diff --git a/extensions/prost/private/tests/sanitized_modules/BUILD.bazel b/extensions/prost/private/tests/sanitized_modules/BUILD.bazel index 1df12d4021..2fdc2ecb46 100644 --- a/extensions/prost/private/tests/sanitized_modules/BUILD.bazel +++ b/extensions/prost/private/tests/sanitized_modules/BUILD.bazel @@ -1,13 +1,13 @@ load("@rules_proto//proto:defs.bzl", "proto_library") load("@rules_rust//rust:defs.bzl", "rust_test") -load("//proto/prost:defs.bzl", "rust_prost_library") +load("//prost:defs.bzl", "rust_prost_library") proto_library( name = "foo_proto", srcs = [ "foo.proto", ], - strip_import_prefix = "/proto/prost/private/tests/sanitized_modules", + strip_import_prefix = "/prost/private/tests/sanitized_modules", ) proto_library( diff --git a/extensions/prost/private/tests/services/echo/BUILD.bazel b/extensions/prost/private/tests/services/echo/BUILD.bazel index 50ae7ab804..4a67d223fb 100644 --- a/extensions/prost/private/tests/services/echo/BUILD.bazel +++ b/extensions/prost/private/tests/services/echo/BUILD.bazel @@ -1,8 +1,8 @@ load("@rules_proto//proto:defs.bzl", "proto_library") -load("//proto/prost:defs.bzl", "rust_prost_library") -load("//rust:defs.bzl", "rust_binary") +load("@rules_rust//rust:defs.bzl", "rust_binary") +load("//prost:defs.bzl", "rust_prost_library") -package(default_visibility = ["//proto/prost/private/tests:__subpackages__"]) +package(default_visibility = ["//prost/private/tests:__subpackages__"]) proto_library( name = "echo_proto", @@ -22,11 +22,11 @@ rust_binary( edition = "2021", deps = [ ":echo_rs_proto", - "//proto/prost/private/3rdparty/crates:h2", - "//proto/prost/private/3rdparty/crates:prost", - "//proto/prost/private/3rdparty/crates:tokio", - "//proto/prost/private/3rdparty/crates:tokio-stream", - "//proto/prost/private/3rdparty/crates:tonic", + "//prost/private/3rdparty/crates:h2", + "//prost/private/3rdparty/crates:prost", + "//prost/private/3rdparty/crates:tokio", + "//prost/private/3rdparty/crates:tokio-stream", + "//prost/private/3rdparty/crates:tonic", ], ) @@ -36,10 +36,10 @@ rust_binary( edition = "2021", deps = [ ":echo_rs_proto", - "//proto/prost/private/3rdparty/crates:h2", - "//proto/prost/private/3rdparty/crates:prost", - "//proto/prost/private/3rdparty/crates:tokio", - "//proto/prost/private/3rdparty/crates:tokio-stream", - "//proto/prost/private/3rdparty/crates:tonic", + "//prost/private/3rdparty/crates:h2", + "//prost/private/3rdparty/crates:prost", + "//prost/private/3rdparty/crates:tokio", + "//prost/private/3rdparty/crates:tokio-stream", + "//prost/private/3rdparty/crates:tonic", ], ) diff --git a/extensions/prost/private/tests/services/helloworld/BUILD.bazel b/extensions/prost/private/tests/services/helloworld/BUILD.bazel index 796492fb8a..0bec23cab3 100644 --- a/extensions/prost/private/tests/services/helloworld/BUILD.bazel +++ b/extensions/prost/private/tests/services/helloworld/BUILD.bazel @@ -1,8 +1,8 @@ load("@rules_proto//proto:defs.bzl", "proto_library") -load("//proto/prost:defs.bzl", "rust_prost_library") -load("//rust:defs.bzl", "rust_binary") +load("@rules_rust//rust:defs.bzl", "rust_binary") +load("//prost:defs.bzl", "rust_prost_library") -package(default_visibility = ["//proto/prost/private/tests:__subpackages__"]) +package(default_visibility = ["//prost/private/tests:__subpackages__"]) proto_library( name = "helloworld_proto", @@ -22,9 +22,9 @@ rust_binary( edition = "2021", deps = [ ":helloworld_rs_proto", - "//proto/prost/private/3rdparty/crates:prost", - "//proto/prost/private/3rdparty/crates:tokio", - "//proto/prost/private/3rdparty/crates:tonic", + "//prost/private/3rdparty/crates:prost", + "//prost/private/3rdparty/crates:tokio", + "//prost/private/3rdparty/crates:tonic", ], ) @@ -34,8 +34,8 @@ rust_binary( edition = "2021", deps = [ ":helloworld_rs_proto", - "//proto/prost/private/3rdparty/crates:prost", - "//proto/prost/private/3rdparty/crates:tokio", - "//proto/prost/private/3rdparty/crates:tonic", + "//prost/private/3rdparty/crates:prost", + "//prost/private/3rdparty/crates:tokio", + "//prost/private/3rdparty/crates:tonic", ], ) diff --git a/extensions/prost/private/tests/transitive_dependencies/BUILD.bazel b/extensions/prost/private/tests/transitive_dependencies/BUILD.bazel index 7f212083b2..3725120a44 100644 --- a/extensions/prost/private/tests/transitive_dependencies/BUILD.bazel +++ b/extensions/prost/private/tests/transitive_dependencies/BUILD.bazel @@ -1,19 +1,19 @@ load("@rules_proto//proto:defs.bzl", "proto_library") -load("//proto/prost:defs.bzl", "rust_prost_library", "rust_prost_toolchain") -load("//rust:defs.bzl", "rust_test") +load("@rules_rust//rust:defs.bzl", "rust_test") +load("//prost:defs.bzl", "rust_prost_library", "rust_prost_toolchain") load(":transition.bzl", "extra_toolchain_wrapper") -package(default_visibility = ["//proto/prost/private/tests:__subpackages__"]) +package(default_visibility = ["//prost/private/tests:__subpackages__"]) proto_library( name = "a_proto", srcs = [ "a.proto", ], - strip_import_prefix = "/proto/prost/private/tests/transitive_dependencies", + strip_import_prefix = "/prost/private/tests/transitive_dependencies", deps = [ - "//proto/prost/private/tests/transitive_dependencies/b:b_proto", - "//proto/prost/private/tests/types:types_proto", + "//prost/private/tests/transitive_dependencies/b:b_proto", + "//prost/private/tests/types:types_proto", "@com_google_protobuf//:duration_proto", "@com_google_protobuf//:timestamp_proto", ], @@ -31,7 +31,7 @@ rust_test( deps = [ ":a_rs_proto", # Add b_proto as a dependency directly to ensure compatibility with `a.proto`'s imports. - "//proto/prost/private/tests/transitive_dependencies/b:b_rs_proto", + "//prost/private/tests/transitive_dependencies/b:b_rs_proto", ], ) @@ -54,18 +54,18 @@ rust_test( toolchain( name = "prost_toolchain_transitive_includes_enabled", toolchain = ":prost_toolchain_transitive_includes_enabled_impl", - toolchain_type = "//proto/prost:toolchain_type", + toolchain_type = "//prost:toolchain_type", ) rust_prost_toolchain( name = "prost_toolchain_transitive_includes_enabled_impl", # This is the important delta from the default toolchain. include_transitive_deps = True, - prost_plugin = "//proto/prost/private/3rdparty/crates:protoc-gen-prost__protoc-gen-prost", + prost_plugin = "//prost/private/3rdparty/crates:protoc-gen-prost__protoc-gen-prost", prost_plugin_flag = "--plugin=protoc-gen-prost=%s", - prost_runtime = "//proto/prost/private:prost_runtime", - prost_types = "//proto/prost/private/3rdparty/crates:prost-types", - tonic_plugin = "//proto/prost/private/3rdparty/crates:protoc-gen-tonic__protoc-gen-tonic", + prost_runtime = "//prost/private:prost_runtime", + prost_types = "//prost/private/3rdparty/crates:prost-types", + tonic_plugin = "//prost/private/3rdparty/crates:protoc-gen-tonic__protoc-gen-tonic", tonic_plugin_flag = "--plugin=protoc-gen-tonic=%s", - tonic_runtime = "//proto/prost/private:tonic_runtime", + tonic_runtime = "//prost/private:tonic_runtime", ) diff --git a/extensions/prost/private/tests/transitive_dependencies/b/BUILD.bazel b/extensions/prost/private/tests/transitive_dependencies/b/BUILD.bazel index 209a149a8c..0dd45942f4 100644 --- a/extensions/prost/private/tests/transitive_dependencies/b/BUILD.bazel +++ b/extensions/prost/private/tests/transitive_dependencies/b/BUILD.bazel @@ -1,17 +1,17 @@ load("@rules_proto//proto:defs.bzl", "proto_library") -load("//proto/prost:defs.bzl", "rust_prost_library") -load("//rust:defs.bzl", "rust_test") +load("@rules_rust//rust:defs.bzl", "rust_test") +load("//prost:defs.bzl", "rust_prost_library") -package(default_visibility = ["//proto/prost/private/tests:__subpackages__"]) +package(default_visibility = ["//prost/private/tests:__subpackages__"]) proto_library( name = "b_proto", srcs = [ "b.proto", ], - strip_import_prefix = "/proto/prost/private/tests/transitive_dependencies", + strip_import_prefix = "/prost/private/tests/transitive_dependencies", deps = [ - "//proto/prost/private/tests/transitive_dependencies/b/c:c_proto", + "//prost/private/tests/transitive_dependencies/b/c:c_proto", "@com_google_protobuf//:empty_proto", ], ) diff --git a/extensions/prost/private/tests/transitive_dependencies/b/c/BUILD.bazel b/extensions/prost/private/tests/transitive_dependencies/b/c/BUILD.bazel index b9c3d0f895..bdadb859b8 100644 --- a/extensions/prost/private/tests/transitive_dependencies/b/c/BUILD.bazel +++ b/extensions/prost/private/tests/transitive_dependencies/b/c/BUILD.bazel @@ -1,15 +1,15 @@ load("@rules_proto//proto:defs.bzl", "proto_library") -load("//proto/prost:defs.bzl", "rust_prost_library") -load("//rust:defs.bzl", "rust_test") +load("@rules_rust//rust:defs.bzl", "rust_test") +load("//prost:defs.bzl", "rust_prost_library") -package(default_visibility = ["//proto/prost/private/tests:__subpackages__"]) +package(default_visibility = ["//prost/private/tests:__subpackages__"]) proto_library( name = "c_proto", srcs = [ "c.proto", ], - strip_import_prefix = "/proto/prost/private/tests/transitive_dependencies", + strip_import_prefix = "/prost/private/tests/transitive_dependencies", deps = [ "@com_google_protobuf//:any_proto", "@com_google_protobuf//:duration_proto", diff --git a/extensions/prost/private/tests/transitive_dependencies/transition.bzl b/extensions/prost/private/tests/transitive_dependencies/transition.bzl index 4178dd0c68..ed20ba67d4 100644 --- a/extensions/prost/private/tests/transitive_dependencies/transition.bzl +++ b/extensions/prost/private/tests/transitive_dependencies/transition.bzl @@ -1,6 +1,6 @@ """Transition rule for the transitive dependencies test case.""" -load("//rust:defs.bzl", "rust_common") +load("@rules_rust//rust:defs.bzl", "rust_common") def _extra_toolchain_transition_impl(settings, attr): return { diff --git a/extensions/prost/private/tests/types/BUILD.bazel b/extensions/prost/private/tests/types/BUILD.bazel index 431bd144e8..8fdc54be86 100644 --- a/extensions/prost/private/tests/types/BUILD.bazel +++ b/extensions/prost/private/tests/types/BUILD.bazel @@ -1,15 +1,15 @@ load("@rules_proto//proto:defs.bzl", "proto_library") -load("//proto/prost:defs.bzl", "rust_prost_library") -load("//rust:defs.bzl", "rust_test") +load("@rules_rust//rust:defs.bzl", "rust_test") +load("//prost:defs.bzl", "rust_prost_library") -package(default_visibility = ["//proto/prost/private/tests:__subpackages__"]) +package(default_visibility = ["//prost/private/tests:__subpackages__"]) proto_library( name = "types_proto", srcs = [ "types.proto", ], - strip_import_prefix = "/proto/prost/private/tests", + strip_import_prefix = "/prost/private/tests", ) rust_prost_library( diff --git a/extensions/prost/private/tests/well_known_types/BUILD.bazel b/extensions/prost/private/tests/well_known_types/BUILD.bazel index 1ca0eff7ed..d14c5614f2 100644 --- a/extensions/prost/private/tests/well_known_types/BUILD.bazel +++ b/extensions/prost/private/tests/well_known_types/BUILD.bazel @@ -1,8 +1,8 @@ load("@rules_proto//proto:defs.bzl", "proto_library") -load("//proto/prost:defs.bzl", "rust_prost_library") -load("//rust:defs.bzl", "rust_test") +load("@rules_rust//rust:defs.bzl", "rust_test") +load("//prost:defs.bzl", "rust_prost_library") -package(default_visibility = ["//proto/prost/private/tests:__subpackages__"]) +package(default_visibility = ["//prost/private/tests:__subpackages__"]) proto_library( name = "well_known_types_proto", diff --git a/extensions/prost/repositories.bzl b/extensions/prost/repositories.bzl index a73494b321..9cdfc4e218 100644 --- a/extensions/prost/repositories.bzl +++ b/extensions/prost/repositories.bzl @@ -2,7 +2,7 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") -load("//proto/prost/private/3rdparty/crates:crates.bzl", "crate_repositories") +load("//prost/private/3rdparty/crates:crates.bzl", "crate_repositories") def rust_prost_dependencies(bzlmod = False): """Declares repositories needed for prost. @@ -48,6 +48,6 @@ def rust_prost_dependencies(bzlmod = False): type = "tar.gz", urls = ["https://static.crates.io/crates/heck/heck-0.5.0.crate"], strip_prefix = "heck-0.5.0", - build_file = Label("@rules_rust//proto/prost/private/3rdparty/crates:BUILD.heck-0.5.0.bazel"), + build_file = Label("@rules_rust_ext//prost/private/3rdparty/crates:BUILD.heck-0.5.0.bazel"), ) return direct_deps diff --git a/extensions/protobuf/3rdparty/BUILD.bazel b/extensions/protobuf/3rdparty/BUILD.bazel index 6a50436ef3..ef49602d27 100644 --- a/extensions/protobuf/3rdparty/BUILD.bazel +++ b/extensions/protobuf/3rdparty/BUILD.bazel @@ -1,5 +1,5 @@ load("@bazel_skylib//:bzl_library.bzl", "bzl_library") -load("//crate_universe:defs.bzl", "crate", "crates_vendor") +load("@rules_rust//crate_universe:defs.bzl", "crate", "crates_vendor") crates_vendor( name = "crates_vendor", @@ -14,7 +14,7 @@ crates_vendor( )], "protobuf": [crate.annotation( patch_args = ["-p1"], - patches = ["@rules_rust//proto/protobuf/3rdparty/patches:protobuf-2.8.2.patch"], + patches = ["@rules_rust_ext//protobuf/3rdparty/patches:protobuf-2.8.2.patch"], )], "protobuf-codegen": [crate.annotation( gen_binaries = ["protoc-gen-rust"], @@ -53,8 +53,8 @@ crates_vendor( bzl_library( name = "bzl_lib", srcs = [ - "//proto/protobuf/3rdparty/crates:crates.bzl", - "//proto/protobuf/3rdparty/crates:defs.bzl", + "//protobuf/3rdparty/crates:crates.bzl", + "//protobuf/3rdparty/crates:defs.bzl", ], - visibility = ["//proto/protobuf:__pkg__"], + visibility = ["//protobuf:__pkg__"], ) diff --git a/extensions/protobuf/3rdparty/crates/BUILD.autocfg-1.1.0.bazel b/extensions/protobuf/3rdparty/crates/BUILD.autocfg-1.1.0.bazel index 52acb8d858..8b3d5e4bc5 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.autocfg-1.1.0.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.autocfg-1.1.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.base64-0.9.3.bazel b/extensions/protobuf/3rdparty/crates/BUILD.base64-0.9.3.bazel index 9b75551d4c..43850bd001 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.base64-0.9.3.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.base64-0.9.3.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.bazel b/extensions/protobuf/3rdparty/crates/BUILD.bazel index 12c3381a45..7e74952182 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### package(default_visibility = ["//visibility:public"]) diff --git a/extensions/protobuf/3rdparty/crates/BUILD.bitflags-1.3.2.bazel b/extensions/protobuf/3rdparty/crates/BUILD.bitflags-1.3.2.bazel index e4a59e9183..d858b3cbf4 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.bitflags-1.3.2.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.bitflags-1.3.2.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.byteorder-1.4.3.bazel b/extensions/protobuf/3rdparty/crates/BUILD.byteorder-1.4.3.bazel index 5a4e933475..9eca256b4f 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.byteorder-1.4.3.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.byteorder-1.4.3.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.bytes-0.4.12.bazel b/extensions/protobuf/3rdparty/crates/BUILD.bytes-0.4.12.bazel index fd06d45207..2c56ecfb03 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.bytes-0.4.12.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.bytes-0.4.12.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.cfg-if-0.1.10.bazel b/extensions/protobuf/3rdparty/crates/BUILD.cfg-if-0.1.10.bazel index 7db951be61..be9d4b5725 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.cfg-if-0.1.10.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.cfg-if-0.1.10.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.cfg-if-1.0.0.bazel b/extensions/protobuf/3rdparty/crates/BUILD.cfg-if-1.0.0.bazel index 15c4052d0b..6a2a0dd23e 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.cfg-if-1.0.0.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.cfg-if-1.0.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.cloudabi-0.0.3.bazel b/extensions/protobuf/3rdparty/crates/BUILD.cloudabi-0.0.3.bazel index c585bae845..c3cd2484bc 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.cloudabi-0.0.3.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.cloudabi-0.0.3.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.crossbeam-deque-0.7.4.bazel b/extensions/protobuf/3rdparty/crates/BUILD.crossbeam-deque-0.7.4.bazel index 110b273093..cc6c951770 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.crossbeam-deque-0.7.4.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.crossbeam-deque-0.7.4.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.crossbeam-epoch-0.8.2.bazel b/extensions/protobuf/3rdparty/crates/BUILD.crossbeam-epoch-0.8.2.bazel index db26c0ac09..e357e09621 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.crossbeam-epoch-0.8.2.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.crossbeam-epoch-0.8.2.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.crossbeam-queue-0.2.3.bazel b/extensions/protobuf/3rdparty/crates/BUILD.crossbeam-queue-0.2.3.bazel index 68dc699a82..61a2dcb77c 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.crossbeam-queue-0.2.3.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.crossbeam-queue-0.2.3.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.crossbeam-utils-0.7.2.bazel b/extensions/protobuf/3rdparty/crates/BUILD.crossbeam-utils-0.7.2.bazel index 0516a2f3bb..55d78dc591 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.crossbeam-utils-0.7.2.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.crossbeam-utils-0.7.2.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.fnv-1.0.7.bazel b/extensions/protobuf/3rdparty/crates/BUILD.fnv-1.0.7.bazel index 4e75798729..86702b6093 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.fnv-1.0.7.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.fnv-1.0.7.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.fuchsia-zircon-0.3.3.bazel b/extensions/protobuf/3rdparty/crates/BUILD.fuchsia-zircon-0.3.3.bazel index b52195817f..1168661657 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.fuchsia-zircon-0.3.3.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.fuchsia-zircon-0.3.3.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.fuchsia-zircon-sys-0.3.3.bazel b/extensions/protobuf/3rdparty/crates/BUILD.fuchsia-zircon-sys-0.3.3.bazel index 8da93e1e0f..8ae8be8b16 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.fuchsia-zircon-sys-0.3.3.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.fuchsia-zircon-sys-0.3.3.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.futures-0.1.31.bazel b/extensions/protobuf/3rdparty/crates/BUILD.futures-0.1.31.bazel index 1b11343315..e7be483f22 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.futures-0.1.31.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.futures-0.1.31.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.futures-cpupool-0.1.8.bazel b/extensions/protobuf/3rdparty/crates/BUILD.futures-cpupool-0.1.8.bazel index 4c82c814ea..dc2df6788e 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.futures-cpupool-0.1.8.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.futures-cpupool-0.1.8.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.grpc-0.6.2.bazel b/extensions/protobuf/3rdparty/crates/BUILD.grpc-0.6.2.bazel index 458b03dea3..cdc6d44bec 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.grpc-0.6.2.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.grpc-0.6.2.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.grpc-compiler-0.6.2.bazel b/extensions/protobuf/3rdparty/crates/BUILD.grpc-compiler-0.6.2.bazel index 11b2128666..1edad74f0e 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.grpc-compiler-0.6.2.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.grpc-compiler-0.6.2.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load( diff --git a/extensions/protobuf/3rdparty/crates/BUILD.hermit-abi-0.2.6.bazel b/extensions/protobuf/3rdparty/crates/BUILD.hermit-abi-0.2.6.bazel index 7e3184759e..41046d157d 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.hermit-abi-0.2.6.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.hermit-abi-0.2.6.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.httpbis-0.7.0.bazel b/extensions/protobuf/3rdparty/crates/BUILD.httpbis-0.7.0.bazel index 8a25fad06b..6c2ee797f3 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.httpbis-0.7.0.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.httpbis-0.7.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.iovec-0.1.4.bazel b/extensions/protobuf/3rdparty/crates/BUILD.iovec-0.1.4.bazel index 7036dc1e14..f5760604ed 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.iovec-0.1.4.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.iovec-0.1.4.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.kernel32-sys-0.2.2.bazel b/extensions/protobuf/3rdparty/crates/BUILD.kernel32-sys-0.2.2.bazel index 6f5919adb5..119af08f41 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.kernel32-sys-0.2.2.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.kernel32-sys-0.2.2.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.lazy_static-1.4.0.bazel b/extensions/protobuf/3rdparty/crates/BUILD.lazy_static-1.4.0.bazel index 6beb3f3982..49272c3b0c 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.lazy_static-1.4.0.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.lazy_static-1.4.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.libc-0.2.139.bazel b/extensions/protobuf/3rdparty/crates/BUILD.libc-0.2.139.bazel index 323092fedc..ba4fd49e98 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.libc-0.2.139.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.libc-0.2.139.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.lock_api-0.3.4.bazel b/extensions/protobuf/3rdparty/crates/BUILD.lock_api-0.3.4.bazel index 0707291d6e..cd6683f4c4 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.lock_api-0.3.4.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.lock_api-0.3.4.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.log-0.3.9.bazel b/extensions/protobuf/3rdparty/crates/BUILD.log-0.3.9.bazel index 9bed64ca89..c695572665 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.log-0.3.9.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.log-0.3.9.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.log-0.4.17.bazel b/extensions/protobuf/3rdparty/crates/BUILD.log-0.4.17.bazel index 8fc3a98dad..245bc07974 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.log-0.4.17.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.log-0.4.17.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.maybe-uninit-2.0.0.bazel b/extensions/protobuf/3rdparty/crates/BUILD.maybe-uninit-2.0.0.bazel index d64783a64b..82dc9bbc81 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.maybe-uninit-2.0.0.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.maybe-uninit-2.0.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.memoffset-0.5.6.bazel b/extensions/protobuf/3rdparty/crates/BUILD.memoffset-0.5.6.bazel index fa154800f7..970851ae43 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.memoffset-0.5.6.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.memoffset-0.5.6.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.mio-0.6.23.bazel b/extensions/protobuf/3rdparty/crates/BUILD.mio-0.6.23.bazel index e15510c274..58407d880b 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.mio-0.6.23.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.mio-0.6.23.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.mio-uds-0.6.8.bazel b/extensions/protobuf/3rdparty/crates/BUILD.mio-uds-0.6.8.bazel index 7882b244c5..56124e4ddc 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.mio-uds-0.6.8.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.mio-uds-0.6.8.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.miow-0.2.2.bazel b/extensions/protobuf/3rdparty/crates/BUILD.miow-0.2.2.bazel index a20df4ccf2..6d044ecdfd 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.miow-0.2.2.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.miow-0.2.2.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.net2-0.2.38.bazel b/extensions/protobuf/3rdparty/crates/BUILD.net2-0.2.38.bazel index 4195d1f1dd..295466cb36 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.net2-0.2.38.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.net2-0.2.38.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.num_cpus-1.15.0.bazel b/extensions/protobuf/3rdparty/crates/BUILD.num_cpus-1.15.0.bazel index a968c3c282..fd232547fe 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.num_cpus-1.15.0.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.num_cpus-1.15.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.parking_lot-0.9.0.bazel b/extensions/protobuf/3rdparty/crates/BUILD.parking_lot-0.9.0.bazel index 4f60be5921..dbd0cbb00a 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.parking_lot-0.9.0.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.parking_lot-0.9.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.parking_lot_core-0.6.3.bazel b/extensions/protobuf/3rdparty/crates/BUILD.parking_lot_core-0.6.3.bazel index 6ef2cc1f6b..2827f615e7 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.parking_lot_core-0.6.3.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.parking_lot_core-0.6.3.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.protobuf-2.8.2.bazel b/extensions/protobuf/3rdparty/crates/BUILD.protobuf-2.8.2.bazel index 2f25897f15..066da6beac 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.protobuf-2.8.2.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.protobuf-2.8.2.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.protobuf-codegen-2.8.2.bazel b/extensions/protobuf/3rdparty/crates/BUILD.protobuf-codegen-2.8.2.bazel index 80d5a1da1b..7c491448f3 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.protobuf-codegen-2.8.2.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.protobuf-codegen-2.8.2.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load( diff --git a/extensions/protobuf/3rdparty/crates/BUILD.redox_syscall-0.1.57.bazel b/extensions/protobuf/3rdparty/crates/BUILD.redox_syscall-0.1.57.bazel index 32554bff94..9ea7a3b210 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.redox_syscall-0.1.57.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.redox_syscall-0.1.57.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.rustc_version-0.2.3.bazel b/extensions/protobuf/3rdparty/crates/BUILD.rustc_version-0.2.3.bazel index ecba219c82..5885a78b35 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.rustc_version-0.2.3.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.rustc_version-0.2.3.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.safemem-0.3.3.bazel b/extensions/protobuf/3rdparty/crates/BUILD.safemem-0.3.3.bazel index a0f7b684a1..6f8ea9a8a0 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.safemem-0.3.3.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.safemem-0.3.3.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.scoped-tls-0.1.2.bazel b/extensions/protobuf/3rdparty/crates/BUILD.scoped-tls-0.1.2.bazel index 8a3d71fcac..1e0f21ce31 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.scoped-tls-0.1.2.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.scoped-tls-0.1.2.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.scopeguard-1.1.0.bazel b/extensions/protobuf/3rdparty/crates/BUILD.scopeguard-1.1.0.bazel index db9def6a46..034d0fbce3 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.scopeguard-1.1.0.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.scopeguard-1.1.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.semver-0.9.0.bazel b/extensions/protobuf/3rdparty/crates/BUILD.semver-0.9.0.bazel index a270d52d35..f2fb55c6d3 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.semver-0.9.0.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.semver-0.9.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.semver-parser-0.7.0.bazel b/extensions/protobuf/3rdparty/crates/BUILD.semver-parser-0.7.0.bazel index 2b3968ac20..865caebce7 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.semver-parser-0.7.0.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.semver-parser-0.7.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.slab-0.3.0.bazel b/extensions/protobuf/3rdparty/crates/BUILD.slab-0.3.0.bazel index 43119b5066..1c12fae5cf 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.slab-0.3.0.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.slab-0.3.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.slab-0.4.7.bazel b/extensions/protobuf/3rdparty/crates/BUILD.slab-0.4.7.bazel index f78fe379a0..c79d39b905 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.slab-0.4.7.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.slab-0.4.7.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.smallvec-0.6.14.bazel b/extensions/protobuf/3rdparty/crates/BUILD.smallvec-0.6.14.bazel index 2df42a0a29..d808ed0855 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.smallvec-0.6.14.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.smallvec-0.6.14.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.tls-api-0.1.22.bazel b/extensions/protobuf/3rdparty/crates/BUILD.tls-api-0.1.22.bazel index 0055a86686..26e81935e8 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.tls-api-0.1.22.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.tls-api-0.1.22.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.tls-api-stub-0.1.22.bazel b/extensions/protobuf/3rdparty/crates/BUILD.tls-api-stub-0.1.22.bazel index ccc1298e66..6b36d247d2 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.tls-api-stub-0.1.22.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.tls-api-stub-0.1.22.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.tokio-0.1.22.bazel b/extensions/protobuf/3rdparty/crates/BUILD.tokio-0.1.22.bazel index 736ca8dc2d..8189827f32 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.tokio-0.1.22.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.tokio-0.1.22.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.tokio-codec-0.1.2.bazel b/extensions/protobuf/3rdparty/crates/BUILD.tokio-codec-0.1.2.bazel index 855b8237b7..280217c8ec 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.tokio-codec-0.1.2.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.tokio-codec-0.1.2.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.tokio-core-0.1.18.bazel b/extensions/protobuf/3rdparty/crates/BUILD.tokio-core-0.1.18.bazel index 9f0ae12889..b07f145d3d 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.tokio-core-0.1.18.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.tokio-core-0.1.18.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.tokio-current-thread-0.1.7.bazel b/extensions/protobuf/3rdparty/crates/BUILD.tokio-current-thread-0.1.7.bazel index d5b7a1a7be..a5d9baafee 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.tokio-current-thread-0.1.7.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.tokio-current-thread-0.1.7.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.tokio-executor-0.1.10.bazel b/extensions/protobuf/3rdparty/crates/BUILD.tokio-executor-0.1.10.bazel index 3d1d99a51a..cba41835c2 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.tokio-executor-0.1.10.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.tokio-executor-0.1.10.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.tokio-fs-0.1.7.bazel b/extensions/protobuf/3rdparty/crates/BUILD.tokio-fs-0.1.7.bazel index 3a6f6487f8..ff05d4df31 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.tokio-fs-0.1.7.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.tokio-fs-0.1.7.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.tokio-io-0.1.13.bazel b/extensions/protobuf/3rdparty/crates/BUILD.tokio-io-0.1.13.bazel index c62c13fd80..44ff0b0002 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.tokio-io-0.1.13.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.tokio-io-0.1.13.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.tokio-reactor-0.1.12.bazel b/extensions/protobuf/3rdparty/crates/BUILD.tokio-reactor-0.1.12.bazel index 782b1eb11f..7e5e208164 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.tokio-reactor-0.1.12.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.tokio-reactor-0.1.12.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.tokio-sync-0.1.8.bazel b/extensions/protobuf/3rdparty/crates/BUILD.tokio-sync-0.1.8.bazel index 38cf8fd5dd..1e91fd51f8 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.tokio-sync-0.1.8.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.tokio-sync-0.1.8.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.tokio-tcp-0.1.4.bazel b/extensions/protobuf/3rdparty/crates/BUILD.tokio-tcp-0.1.4.bazel index 11eb0ff9b5..3e7e974bed 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.tokio-tcp-0.1.4.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.tokio-tcp-0.1.4.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.tokio-threadpool-0.1.18.bazel b/extensions/protobuf/3rdparty/crates/BUILD.tokio-threadpool-0.1.18.bazel index 53c5632f14..d5bd7c2a4e 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.tokio-threadpool-0.1.18.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.tokio-threadpool-0.1.18.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.tokio-timer-0.1.2.bazel b/extensions/protobuf/3rdparty/crates/BUILD.tokio-timer-0.1.2.bazel index db695224da..2b02bf5f48 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.tokio-timer-0.1.2.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.tokio-timer-0.1.2.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.tokio-timer-0.2.13.bazel b/extensions/protobuf/3rdparty/crates/BUILD.tokio-timer-0.2.13.bazel index 1ac0425a2e..2aa2d7572d 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.tokio-timer-0.2.13.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.tokio-timer-0.2.13.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.tokio-tls-api-0.1.22.bazel b/extensions/protobuf/3rdparty/crates/BUILD.tokio-tls-api-0.1.22.bazel index e88729be18..070b7d5a3e 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.tokio-tls-api-0.1.22.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.tokio-tls-api-0.1.22.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.tokio-udp-0.1.6.bazel b/extensions/protobuf/3rdparty/crates/BUILD.tokio-udp-0.1.6.bazel index aea7f6acc8..34320383b7 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.tokio-udp-0.1.6.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.tokio-udp-0.1.6.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.tokio-uds-0.1.7.bazel b/extensions/protobuf/3rdparty/crates/BUILD.tokio-uds-0.1.7.bazel index 3f821a2204..006e80d362 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.tokio-uds-0.1.7.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.tokio-uds-0.1.7.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.tokio-uds-0.2.7.bazel b/extensions/protobuf/3rdparty/crates/BUILD.tokio-uds-0.2.7.bazel index 410024f6e9..ec8bd071ba 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.tokio-uds-0.2.7.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.tokio-uds-0.2.7.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.unix_socket-0.5.0.bazel b/extensions/protobuf/3rdparty/crates/BUILD.unix_socket-0.5.0.bazel index 22d770336e..c7533f7b6e 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.unix_socket-0.5.0.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.unix_socket-0.5.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.void-1.0.2.bazel b/extensions/protobuf/3rdparty/crates/BUILD.void-1.0.2.bazel index 999de842f7..d50df7750a 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.void-1.0.2.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.void-1.0.2.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.winapi-0.2.8.bazel b/extensions/protobuf/3rdparty/crates/BUILD.winapi-0.2.8.bazel index b290ba1f5c..da739cd5a3 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.winapi-0.2.8.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.winapi-0.2.8.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.winapi-0.3.9.bazel b/extensions/protobuf/3rdparty/crates/BUILD.winapi-0.3.9.bazel index 7c50b73dbb..4bccbe34c5 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.winapi-0.3.9.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.winapi-0.3.9.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.winapi-build-0.1.1.bazel b/extensions/protobuf/3rdparty/crates/BUILD.winapi-build-0.1.1.bazel index 1563c67b07..8ec812d5d2 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.winapi-build-0.1.1.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.winapi-build-0.1.1.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel b/extensions/protobuf/3rdparty/crates/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel index 6aa8a3b478..e1c88e32e0 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel b/extensions/protobuf/3rdparty/crates/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel index bff9ebbc19..4d3dde4ca1 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/protobuf/3rdparty/crates/BUILD.ws2_32-sys-0.2.1.bazel b/extensions/protobuf/3rdparty/crates/BUILD.ws2_32-sys-0.2.1.bazel index a28511fdca..f3e9b56e1e 100644 --- a/extensions/protobuf/3rdparty/crates/BUILD.ws2_32-sys-0.2.1.bazel +++ b/extensions/protobuf/3rdparty/crates/BUILD.ws2_32-sys-0.2.1.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/extensions/protobuf/3rdparty/crates/crates.bzl b/extensions/protobuf/3rdparty/crates/crates.bzl index 4bc1c1d72c..f0877314d5 100644 --- a/extensions/protobuf/3rdparty/crates/crates.bzl +++ b/extensions/protobuf/3rdparty/crates/crates.bzl @@ -12,7 +12,7 @@ load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") load("@rules_rust//crate_universe/private:crates_vendor.bzl", "crates_vendor_remote_repository") # buildifier: disable=bzl-visibility -load("@rules_rust//proto/protobuf/3rdparty/crates:defs.bzl", _crate_repositories = "crate_repositories") +load("@rules_rust_ext//protobuf/3rdparty/crates:defs.bzl", _crate_repositories = "crate_repositories") def crate_repositories(): """Generates repositories for vendored crates. @@ -23,8 +23,8 @@ def crate_repositories(): maybe( crates_vendor_remote_repository, name = "rules_rust_proto", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.bazel"), - defs_module = Label("@rules_rust//proto/protobuf/3rdparty/crates:defs.bzl"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.bazel"), + defs_module = Label("@rules_rust_ext//protobuf/3rdparty/crates:defs.bzl"), ) direct_deps = [struct(repo = "rules_rust_proto", is_dev_dep = False)] diff --git a/extensions/protobuf/3rdparty/crates/defs.bzl b/extensions/protobuf/3rdparty/crates/defs.bzl index df250390a4..96b07cf053 100644 --- a/extensions/protobuf/3rdparty/crates/defs.bzl +++ b/extensions/protobuf/3rdparty/crates/defs.bzl @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run @//proto/protobuf/3rdparty:crates_vendor +# bazel run @//protobuf/3rdparty:crates_vendor ############################################################################### """ # `crates_repository` API @@ -426,7 +426,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/autocfg/1.1.0/download"], strip_prefix = "autocfg-1.1.0", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.autocfg-1.1.0.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.autocfg-1.1.0.bazel"), ) maybe( @@ -436,7 +436,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/base64/0.9.3/download"], strip_prefix = "base64-0.9.3", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.base64-0.9.3.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.base64-0.9.3.bazel"), ) maybe( @@ -446,7 +446,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/bitflags/1.3.2/download"], strip_prefix = "bitflags-1.3.2", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.bitflags-1.3.2.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.bitflags-1.3.2.bazel"), ) maybe( @@ -456,7 +456,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/byteorder/1.4.3/download"], strip_prefix = "byteorder-1.4.3", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.byteorder-1.4.3.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.byteorder-1.4.3.bazel"), ) maybe( @@ -466,7 +466,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/bytes/0.4.12/download"], strip_prefix = "bytes-0.4.12", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.bytes-0.4.12.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.bytes-0.4.12.bazel"), ) maybe( @@ -476,7 +476,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/cfg-if/0.1.10/download"], strip_prefix = "cfg-if-0.1.10", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.cfg-if-0.1.10.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.cfg-if-0.1.10.bazel"), ) maybe( @@ -486,7 +486,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/cfg-if/1.0.0/download"], strip_prefix = "cfg-if-1.0.0", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.cfg-if-1.0.0.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.cfg-if-1.0.0.bazel"), ) maybe( @@ -496,7 +496,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/cloudabi/0.0.3/download"], strip_prefix = "cloudabi-0.0.3", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.cloudabi-0.0.3.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.cloudabi-0.0.3.bazel"), ) maybe( @@ -506,7 +506,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/crossbeam-deque/0.7.4/download"], strip_prefix = "crossbeam-deque-0.7.4", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.crossbeam-deque-0.7.4.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.crossbeam-deque-0.7.4.bazel"), ) maybe( @@ -516,7 +516,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/crossbeam-epoch/0.8.2/download"], strip_prefix = "crossbeam-epoch-0.8.2", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.crossbeam-epoch-0.8.2.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.crossbeam-epoch-0.8.2.bazel"), ) maybe( @@ -526,7 +526,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/crossbeam-queue/0.2.3/download"], strip_prefix = "crossbeam-queue-0.2.3", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.crossbeam-queue-0.2.3.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.crossbeam-queue-0.2.3.bazel"), ) maybe( @@ -536,7 +536,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/crossbeam-utils/0.7.2/download"], strip_prefix = "crossbeam-utils-0.7.2", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.crossbeam-utils-0.7.2.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.crossbeam-utils-0.7.2.bazel"), ) maybe( @@ -546,7 +546,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/fnv/1.0.7/download"], strip_prefix = "fnv-1.0.7", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.fnv-1.0.7.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.fnv-1.0.7.bazel"), ) maybe( @@ -556,7 +556,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/fuchsia-zircon/0.3.3/download"], strip_prefix = "fuchsia-zircon-0.3.3", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.fuchsia-zircon-0.3.3.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.fuchsia-zircon-0.3.3.bazel"), ) maybe( @@ -566,7 +566,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/fuchsia-zircon-sys/0.3.3/download"], strip_prefix = "fuchsia-zircon-sys-0.3.3", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.fuchsia-zircon-sys-0.3.3.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.fuchsia-zircon-sys-0.3.3.bazel"), ) maybe( @@ -576,7 +576,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/futures/0.1.31/download"], strip_prefix = "futures-0.1.31", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.futures-0.1.31.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.futures-0.1.31.bazel"), ) maybe( @@ -586,7 +586,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/futures-cpupool/0.1.8/download"], strip_prefix = "futures-cpupool-0.1.8", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.futures-cpupool-0.1.8.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.futures-cpupool-0.1.8.bazel"), ) maybe( @@ -596,7 +596,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/grpc/0.6.2/download"], strip_prefix = "grpc-0.6.2", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.grpc-0.6.2.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.grpc-0.6.2.bazel"), ) maybe( @@ -606,7 +606,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/grpc-compiler/0.6.2/download"], strip_prefix = "grpc-compiler-0.6.2", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.grpc-compiler-0.6.2.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.grpc-compiler-0.6.2.bazel"), ) maybe( @@ -616,7 +616,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/hermit-abi/0.2.6/download"], strip_prefix = "hermit-abi-0.2.6", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.hermit-abi-0.2.6.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.hermit-abi-0.2.6.bazel"), ) maybe( @@ -626,7 +626,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/httpbis/0.7.0/download"], strip_prefix = "httpbis-0.7.0", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.httpbis-0.7.0.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.httpbis-0.7.0.bazel"), ) maybe( @@ -636,7 +636,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/iovec/0.1.4/download"], strip_prefix = "iovec-0.1.4", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.iovec-0.1.4.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.iovec-0.1.4.bazel"), ) maybe( @@ -646,7 +646,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/kernel32-sys/0.2.2/download"], strip_prefix = "kernel32-sys-0.2.2", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.kernel32-sys-0.2.2.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.kernel32-sys-0.2.2.bazel"), ) maybe( @@ -656,7 +656,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/lazy_static/1.4.0/download"], strip_prefix = "lazy_static-1.4.0", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.lazy_static-1.4.0.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.lazy_static-1.4.0.bazel"), ) maybe( @@ -666,7 +666,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/libc/0.2.139/download"], strip_prefix = "libc-0.2.139", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.libc-0.2.139.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.libc-0.2.139.bazel"), ) maybe( @@ -676,7 +676,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/lock_api/0.3.4/download"], strip_prefix = "lock_api-0.3.4", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.lock_api-0.3.4.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.lock_api-0.3.4.bazel"), ) maybe( @@ -686,7 +686,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/log/0.3.9/download"], strip_prefix = "log-0.3.9", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.log-0.3.9.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.log-0.3.9.bazel"), ) maybe( @@ -696,7 +696,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/log/0.4.17/download"], strip_prefix = "log-0.4.17", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.log-0.4.17.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.log-0.4.17.bazel"), ) maybe( @@ -706,7 +706,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/maybe-uninit/2.0.0/download"], strip_prefix = "maybe-uninit-2.0.0", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.maybe-uninit-2.0.0.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.maybe-uninit-2.0.0.bazel"), ) maybe( @@ -716,7 +716,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/memoffset/0.5.6/download"], strip_prefix = "memoffset-0.5.6", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.memoffset-0.5.6.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.memoffset-0.5.6.bazel"), ) maybe( @@ -726,7 +726,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/mio/0.6.23/download"], strip_prefix = "mio-0.6.23", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.mio-0.6.23.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.mio-0.6.23.bazel"), ) maybe( @@ -736,7 +736,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/mio-uds/0.6.8/download"], strip_prefix = "mio-uds-0.6.8", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.mio-uds-0.6.8.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.mio-uds-0.6.8.bazel"), ) maybe( @@ -746,7 +746,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/miow/0.2.2/download"], strip_prefix = "miow-0.2.2", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.miow-0.2.2.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.miow-0.2.2.bazel"), ) maybe( @@ -756,7 +756,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/net2/0.2.38/download"], strip_prefix = "net2-0.2.38", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.net2-0.2.38.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.net2-0.2.38.bazel"), ) maybe( @@ -766,7 +766,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/num_cpus/1.15.0/download"], strip_prefix = "num_cpus-1.15.0", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.num_cpus-1.15.0.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.num_cpus-1.15.0.bazel"), ) maybe( @@ -776,7 +776,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/parking_lot/0.9.0/download"], strip_prefix = "parking_lot-0.9.0", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.parking_lot-0.9.0.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.parking_lot-0.9.0.bazel"), ) maybe( @@ -786,7 +786,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/parking_lot_core/0.6.3/download"], strip_prefix = "parking_lot_core-0.6.3", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.parking_lot_core-0.6.3.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.parking_lot_core-0.6.3.bazel"), ) maybe( @@ -796,13 +796,13 @@ def crate_repositories(): "-p1", ], patches = [ - "@rules_rust//proto/protobuf/3rdparty/patches:protobuf-2.8.2.patch", + "@rules_rust_ext//protobuf/3rdparty/patches:protobuf-2.8.2.patch", ], sha256 = "70731852eec72c56d11226c8a5f96ad5058a3dab73647ca5f7ee351e464f2571", type = "tar.gz", urls = ["https://static.crates.io/crates/protobuf/2.8.2/download"], strip_prefix = "protobuf-2.8.2", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.protobuf-2.8.2.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.protobuf-2.8.2.bazel"), ) maybe( @@ -812,7 +812,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/protobuf-codegen/2.8.2/download"], strip_prefix = "protobuf-codegen-2.8.2", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.protobuf-codegen-2.8.2.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.protobuf-codegen-2.8.2.bazel"), ) maybe( @@ -822,7 +822,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/redox_syscall/0.1.57/download"], strip_prefix = "redox_syscall-0.1.57", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.redox_syscall-0.1.57.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.redox_syscall-0.1.57.bazel"), ) maybe( @@ -832,7 +832,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/rustc_version/0.2.3/download"], strip_prefix = "rustc_version-0.2.3", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.rustc_version-0.2.3.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.rustc_version-0.2.3.bazel"), ) maybe( @@ -842,7 +842,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/safemem/0.3.3/download"], strip_prefix = "safemem-0.3.3", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.safemem-0.3.3.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.safemem-0.3.3.bazel"), ) maybe( @@ -852,7 +852,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/scoped-tls/0.1.2/download"], strip_prefix = "scoped-tls-0.1.2", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.scoped-tls-0.1.2.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.scoped-tls-0.1.2.bazel"), ) maybe( @@ -862,7 +862,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/scopeguard/1.1.0/download"], strip_prefix = "scopeguard-1.1.0", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.scopeguard-1.1.0.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.scopeguard-1.1.0.bazel"), ) maybe( @@ -872,7 +872,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/semver/0.9.0/download"], strip_prefix = "semver-0.9.0", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.semver-0.9.0.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.semver-0.9.0.bazel"), ) maybe( @@ -882,7 +882,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/semver-parser/0.7.0/download"], strip_prefix = "semver-parser-0.7.0", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.semver-parser-0.7.0.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.semver-parser-0.7.0.bazel"), ) maybe( @@ -892,7 +892,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/slab/0.3.0/download"], strip_prefix = "slab-0.3.0", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.slab-0.3.0.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.slab-0.3.0.bazel"), ) maybe( @@ -902,7 +902,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/slab/0.4.7/download"], strip_prefix = "slab-0.4.7", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.slab-0.4.7.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.slab-0.4.7.bazel"), ) maybe( @@ -912,7 +912,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/smallvec/0.6.14/download"], strip_prefix = "smallvec-0.6.14", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.smallvec-0.6.14.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.smallvec-0.6.14.bazel"), ) maybe( @@ -922,7 +922,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tls-api/0.1.22/download"], strip_prefix = "tls-api-0.1.22", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.tls-api-0.1.22.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.tls-api-0.1.22.bazel"), ) maybe( @@ -932,7 +932,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tls-api-stub/0.1.22/download"], strip_prefix = "tls-api-stub-0.1.22", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.tls-api-stub-0.1.22.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.tls-api-stub-0.1.22.bazel"), ) maybe( @@ -942,7 +942,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tokio/0.1.22/download"], strip_prefix = "tokio-0.1.22", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.tokio-0.1.22.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.tokio-0.1.22.bazel"), ) maybe( @@ -952,7 +952,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tokio-codec/0.1.2/download"], strip_prefix = "tokio-codec-0.1.2", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.tokio-codec-0.1.2.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.tokio-codec-0.1.2.bazel"), ) maybe( @@ -962,7 +962,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tokio-core/0.1.18/download"], strip_prefix = "tokio-core-0.1.18", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.tokio-core-0.1.18.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.tokio-core-0.1.18.bazel"), ) maybe( @@ -972,7 +972,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tokio-current-thread/0.1.7/download"], strip_prefix = "tokio-current-thread-0.1.7", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.tokio-current-thread-0.1.7.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.tokio-current-thread-0.1.7.bazel"), ) maybe( @@ -982,7 +982,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tokio-executor/0.1.10/download"], strip_prefix = "tokio-executor-0.1.10", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.tokio-executor-0.1.10.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.tokio-executor-0.1.10.bazel"), ) maybe( @@ -992,7 +992,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tokio-fs/0.1.7/download"], strip_prefix = "tokio-fs-0.1.7", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.tokio-fs-0.1.7.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.tokio-fs-0.1.7.bazel"), ) maybe( @@ -1002,7 +1002,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tokio-io/0.1.13/download"], strip_prefix = "tokio-io-0.1.13", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.tokio-io-0.1.13.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.tokio-io-0.1.13.bazel"), ) maybe( @@ -1012,7 +1012,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tokio-reactor/0.1.12/download"], strip_prefix = "tokio-reactor-0.1.12", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.tokio-reactor-0.1.12.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.tokio-reactor-0.1.12.bazel"), ) maybe( @@ -1022,7 +1022,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tokio-sync/0.1.8/download"], strip_prefix = "tokio-sync-0.1.8", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.tokio-sync-0.1.8.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.tokio-sync-0.1.8.bazel"), ) maybe( @@ -1032,7 +1032,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tokio-tcp/0.1.4/download"], strip_prefix = "tokio-tcp-0.1.4", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.tokio-tcp-0.1.4.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.tokio-tcp-0.1.4.bazel"), ) maybe( @@ -1042,7 +1042,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tokio-threadpool/0.1.18/download"], strip_prefix = "tokio-threadpool-0.1.18", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.tokio-threadpool-0.1.18.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.tokio-threadpool-0.1.18.bazel"), ) maybe( @@ -1052,7 +1052,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tokio-timer/0.1.2/download"], strip_prefix = "tokio-timer-0.1.2", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.tokio-timer-0.1.2.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.tokio-timer-0.1.2.bazel"), ) maybe( @@ -1062,7 +1062,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tokio-timer/0.2.13/download"], strip_prefix = "tokio-timer-0.2.13", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.tokio-timer-0.2.13.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.tokio-timer-0.2.13.bazel"), ) maybe( @@ -1072,7 +1072,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tokio-tls-api/0.1.22/download"], strip_prefix = "tokio-tls-api-0.1.22", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.tokio-tls-api-0.1.22.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.tokio-tls-api-0.1.22.bazel"), ) maybe( @@ -1082,7 +1082,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tokio-udp/0.1.6/download"], strip_prefix = "tokio-udp-0.1.6", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.tokio-udp-0.1.6.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.tokio-udp-0.1.6.bazel"), ) maybe( @@ -1092,7 +1092,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tokio-uds/0.1.7/download"], strip_prefix = "tokio-uds-0.1.7", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.tokio-uds-0.1.7.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.tokio-uds-0.1.7.bazel"), ) maybe( @@ -1102,7 +1102,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tokio-uds/0.2.7/download"], strip_prefix = "tokio-uds-0.2.7", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.tokio-uds-0.2.7.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.tokio-uds-0.2.7.bazel"), ) maybe( @@ -1112,7 +1112,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/unix_socket/0.5.0/download"], strip_prefix = "unix_socket-0.5.0", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.unix_socket-0.5.0.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.unix_socket-0.5.0.bazel"), ) maybe( @@ -1122,7 +1122,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/void/1.0.2/download"], strip_prefix = "void-1.0.2", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.void-1.0.2.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.void-1.0.2.bazel"), ) maybe( @@ -1132,7 +1132,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/winapi/0.2.8/download"], strip_prefix = "winapi-0.2.8", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.winapi-0.2.8.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.winapi-0.2.8.bazel"), ) maybe( @@ -1142,7 +1142,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/winapi/0.3.9/download"], strip_prefix = "winapi-0.3.9", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.winapi-0.3.9.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.winapi-0.3.9.bazel"), ) maybe( @@ -1152,7 +1152,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/winapi-build/0.1.1/download"], strip_prefix = "winapi-build-0.1.1", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.winapi-build-0.1.1.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.winapi-build-0.1.1.bazel"), ) maybe( @@ -1162,7 +1162,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/winapi-i686-pc-windows-gnu/0.4.0/download"], strip_prefix = "winapi-i686-pc-windows-gnu-0.4.0", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel"), ) maybe( @@ -1172,7 +1172,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/winapi-x86_64-pc-windows-gnu/0.4.0/download"], strip_prefix = "winapi-x86_64-pc-windows-gnu-0.4.0", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel"), ) maybe( @@ -1182,7 +1182,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/ws2_32-sys/0.2.1/download"], strip_prefix = "ws2_32-sys-0.2.1", - build_file = Label("@rules_rust//proto/protobuf/3rdparty/crates:BUILD.ws2_32-sys-0.2.1.bazel"), + build_file = Label("@rules_rust_ext//protobuf/3rdparty/crates:BUILD.ws2_32-sys-0.2.1.bazel"), ) return [ diff --git a/extensions/protobuf/BUILD.bazel b/extensions/protobuf/BUILD.bazel index f8ba82c058..5b43c81fcd 100644 --- a/extensions/protobuf/BUILD.bazel +++ b/extensions/protobuf/BUILD.bazel @@ -1,5 +1,5 @@ load("@bazel_skylib//:bzl_library.bzl", "bzl_library") -load("//rust:defs.bzl", "rust_binary") +load("@rules_rust//rust:defs.bzl", "rust_binary") load(":legacy_proto_toolchain.bzl", "legacy_proto_toolchain") load(":toolchain.bzl", "rust_proto_toolchain") @@ -9,6 +9,10 @@ toolchain_type( name = "toolchain_type", ) +exports_files([ + "defs.bzl", +]) + rust_binary( name = "optional_output_wrapper", srcs = ["optional_output_wrapper.rs"], @@ -19,7 +23,7 @@ rust_binary( toolchain( name = "default-proto-toolchain", toolchain = ":default-proto-toolchain-impl", - toolchain_type = "@rules_rust//proto/protobuf:toolchain_type", + toolchain_type = "@rules_rust_ext//protobuf:toolchain_type", ) rust_proto_toolchain( @@ -29,9 +33,14 @@ rust_proto_toolchain( bzl_library( name = "bzl_lib", - srcs = glob(["**/*.bzl"]), + srcs = glob(["**/*.bzl"]) + [ + "@com_google_protobuf//:bzl_srcs", + ], deps = [ - "//proto/protobuf/3rdparty:bzl_lib", + "//protobuf/3rdparty:bzl_lib", + "@rules_proto//proto:defs", + "@rules_proto//proto:repositories", + "@rules_rust//rust:bzl_lib", ], ) diff --git a/extensions/protobuf/proto.bzl b/extensions/protobuf/proto.bzl index 959d0c1c90..ef1577d324 100644 --- a/extensions/protobuf/proto.bzl +++ b/extensions/protobuf/proto.bzl @@ -15,17 +15,17 @@ """Rust Protobuf Rules""" load("@rules_proto//proto:defs.bzl", "ProtoInfo") -load( - "//proto/protobuf:toolchain.bzl", - _generate_proto = "rust_generate_proto", - _generated_file_stem = "generated_file_stem", -) # buildifier: disable=bzl-visibility -load("//rust/private:rustc.bzl", "rustc_compile_action") +load("@rules_rust//rust/private:rustc.bzl", "rustc_compile_action") # buildifier: disable=bzl-visibility -load("//rust/private:utils.bzl", "can_build_metadata", "compute_crate_name", "determine_output_hash", "find_toolchain", "transform_deps") +load("@rules_rust//rust/private:utils.bzl", "can_build_metadata", "compute_crate_name", "determine_output_hash", "find_toolchain", "transform_deps") +load( + "//protobuf:toolchain.bzl", + _generate_proto = "rust_generate_proto", + _generated_file_stem = "generated_file_stem", +) RustProtoInfo = provider( doc = "Rust protobuf provider info", @@ -167,7 +167,7 @@ def _rust_proto_compile(protos, descriptor_sets, imports, crate_name, ctx, is_gr """ # Create all the source in a specific folder - proto_toolchain = ctx.toolchains[Label("//proto/protobuf:toolchain_type")] + proto_toolchain = ctx.toolchains[Label("//protobuf:toolchain_type")] output_dir = "%s.%s.rust" % (crate_name, "grpc" if is_grpc else "proto") # Generate the proto stubs @@ -306,7 +306,7 @@ rust_proto_library = rule( List of compiler flags passed to `rustc`. These strings are subject to Make variable expansion for predefined - source/output path variables like `$location`, `$execpath`, and + source/output path variables like `$location`, `$execpath`, and `$rootpath`. This expansion is useful if you wish to pass a generated file of arguments to rustc: `@$(location //package:target)`. """, @@ -317,10 +317,10 @@ rust_proto_library = rule( "_optional_output_wrapper": attr.label( executable = True, cfg = "exec", - default = Label("//proto/protobuf:optional_output_wrapper"), + default = Label("//protobuf:optional_output_wrapper"), ), "_process_wrapper": attr.label( - default = Label("//util/process_wrapper"), + default = Label("@rules_rust//util/process_wrapper"), executable = True, allow_single_file = True, cfg = "exec", @@ -328,8 +328,8 @@ rust_proto_library = rule( }, fragments = ["cpp"], toolchains = [ - str(Label("//proto/protobuf:toolchain_type")), - str(Label("//rust:toolchain_type")), + str(Label("//protobuf:toolchain_type")), + str(Label("@rules_rust//rust:toolchain_type")), "@bazel_tools//tools/cpp:toolchain_type", ], doc = """\ @@ -338,7 +338,7 @@ Builds a Rust library crate from a set of `proto_library`s. Example: ```python -load("@rules_rust//proto/protobuf:defs.bzl", "rust_proto_library") +load("@rules_rust_ext//protobuf:defs.bzl", "rust_proto_library") proto_library( name = "my_proto", @@ -398,7 +398,7 @@ rust_grpc_library = rule( List of compiler flags passed to `rustc`. These strings are subject to Make variable expansion for predefined - source/output path variables like `$location`, `$execpath`, and + source/output path variables like `$location`, `$execpath`, and `$rootpath`. This expansion is useful if you wish to pass a generated file of arguments to rustc: `@$(location //package:target)`. """, @@ -409,10 +409,10 @@ rust_grpc_library = rule( "_optional_output_wrapper": attr.label( executable = True, cfg = "exec", - default = Label("//proto/protobuf:optional_output_wrapper"), + default = Label("//protobuf:optional_output_wrapper"), ), "_process_wrapper": attr.label( - default = Label("//util/process_wrapper"), + default = Label("@rules_rust//util/process_wrapper"), executable = True, allow_single_file = True, cfg = "exec", @@ -420,8 +420,8 @@ rust_grpc_library = rule( }, fragments = ["cpp"], toolchains = [ - str(Label("//proto/protobuf:toolchain_type")), - str(Label("//rust:toolchain_type")), + str(Label("//protobuf:toolchain_type")), + str(Label("@rules_rust//rust:toolchain_type")), "@bazel_tools//tools/cpp:toolchain_type", ], doc = """\ @@ -430,7 +430,7 @@ Builds a Rust library crate from a set of `proto_library`s suitable for gRPC. Example: ```python -load("@rules_rust//proto/protobuf:defs.bzl", "rust_grpc_library") +load("@rules_rust_ext//protobuf:defs.bzl", "rust_grpc_library") proto_library( name = "my_proto", diff --git a/extensions/protobuf/repositories.bzl b/extensions/protobuf/repositories.bzl index ea45dbe93a..0357d5b19d 100644 --- a/extensions/protobuf/repositories.bzl +++ b/extensions/protobuf/repositories.bzl @@ -16,7 +16,7 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") -load("//proto/protobuf/3rdparty/crates:defs.bzl", "crate_repositories") +load("//protobuf/3rdparty/crates:defs.bzl", "crate_repositories") def rust_proto_protobuf_dependencies(bzlmod = False): """Sets up dependencies for rules_rust's proto support. @@ -48,7 +48,7 @@ def rust_proto_protobuf_dependencies(bzlmod = False): ], patch_args = ["-p1"], patches = [ - Label("//proto/protobuf/3rdparty/patches:com_google_protobuf-v3.10.0-bzl_visibility.patch"), + Label("//protobuf/3rdparty/patches:com_google_protobuf-v3.10.0-bzl_visibility.patch"), ], ) @@ -67,4 +67,4 @@ def rust_proto_protobuf_register_toolchains(register_toolchains = True): """Register toolchains for proto compilation.""" if register_toolchains: - native.register_toolchains(str(Label("//proto/protobuf:default-proto-toolchain"))) + native.register_toolchains(str(Label("//protobuf:default-proto-toolchain"))) diff --git a/extensions/protobuf/test/BUILD.bazel b/extensions/protobuf/test/BUILD.bazel index e0e786ee45..079585349d 100644 --- a/extensions/protobuf/test/BUILD.bazel +++ b/extensions/protobuf/test/BUILD.bazel @@ -1,5 +1,5 @@ load("@rules_proto//proto:defs.bzl", "proto_library") -load("@rules_rust//proto/protobuf:defs.bzl", "rust_proto_library") +load("@rules_rust_ext//protobuf:defs.bzl", "rust_proto_library") proto_library( name = "a_proto", diff --git a/extensions/protobuf/toolchain.bzl b/extensions/protobuf/toolchain.bzl index 848e267c15..589d77de50 100644 --- a/extensions/protobuf/toolchain.bzl +++ b/extensions/protobuf/toolchain.bzl @@ -17,7 +17,7 @@ load("@rules_proto//proto:proto_common.bzl", proto_toolchains = "toolchains") # buildifier: disable=bzl-visibility -load("//rust/private:utils.bzl", "name_to_crate_name") +load("@rules_rust//rust/private:utils.bzl", "name_to_crate_name") def generated_file_stem(file_path): """Returns the basename of a file without any extensions. @@ -145,14 +145,14 @@ def _rust_proto_toolchain_impl(ctx): # Default dependencies needed to compile protobuf stubs. PROTO_COMPILE_DEPS = [ - Label("//proto/protobuf/3rdparty/crates:protobuf"), + Label("//protobuf/3rdparty/crates:protobuf"), ] # Default dependencies needed to compile gRPC stubs. GRPC_COMPILE_DEPS = PROTO_COMPILE_DEPS + [ - Label("//proto/protobuf/3rdparty/crates:grpc"), - Label("//proto/protobuf/3rdparty/crates:tls-api"), - Label("//proto/protobuf/3rdparty/crates:tls-api-stub"), + Label("//protobuf/3rdparty/crates:grpc"), + Label("//protobuf/3rdparty/crates:tls-api"), + Label("//protobuf/3rdparty/crates:tls-api-stub"), ] rust_proto_toolchain = rule( @@ -170,7 +170,7 @@ rust_proto_toolchain = rule( doc = "The location of the Rust protobuf compiler plugin to generate rust gRPC stubs.", allow_single_file = True, cfg = "exec", - default = Label("//proto/protobuf/3rdparty/crates:grpc-compiler__protoc-gen-rust-grpc"), + default = Label("//protobuf/3rdparty/crates:grpc-compiler__protoc-gen-rust-grpc"), ), "proto_compile_deps": attr.label_list( doc = "The crates the generated protobuf libraries depends on.", @@ -181,7 +181,7 @@ rust_proto_toolchain = rule( doc = "The location of the Rust protobuf compiler plugin used to generate rust sources.", allow_single_file = True, cfg = "exec", - default = Label("//proto/protobuf/3rdparty/crates:protobuf-codegen__protoc-gen-rust"), + default = Label("//protobuf/3rdparty/crates:protobuf-codegen__protoc-gen-rust"), ), "protoc": attr.label( doc = "The location of the `protoc` binary. It should be an executable target. Note that this attribute is deprecated - prefer to use --incompatible_enable_proto_toolchain_resolution.", @@ -190,7 +190,7 @@ rust_proto_toolchain = rule( ), }, **proto_toolchains.if_legacy_toolchain({ "_legacy_proto_toolchain": attr.label( - default = "//proto/protobuf:legacy_proto_toolchain", + default = "//protobuf:legacy_proto_toolchain", ), })), doc = """\ @@ -205,7 +205,7 @@ Suppose a new nicer gRPC plugin has came out. The new plugin can be \ used in Bazel by defining a new toolchain definition and declaration: ```python -load('@rules_rust//proto/protobuf:toolchain.bzl', 'rust_proto_toolchain') +load('@rules_rust_ext//protobuf:toolchain.bzl', 'rust_proto_toolchain') rust_proto_toolchain( name="rust_proto_impl", diff --git a/extensions/protobuf/transitive_repositories.bzl b/extensions/protobuf/transitive_repositories.bzl index 3cbae8b6e0..906f9f2ca6 100644 --- a/extensions/protobuf/transitive_repositories.bzl +++ b/extensions/protobuf/transitive_repositories.bzl @@ -1,4 +1,4 @@ -"""Definitions for loading transitive `@rules_rust//proto/protobuf` dependencies""" +"""Definitions for loading transitive `@rules_rust_ext//protobuf` dependencies""" load("@bazel_features//:deps.bzl", "bazel_features_deps") load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") @@ -6,7 +6,7 @@ load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies") def rust_proto_protobuf_transitive_repositories(): - """Load transitive dependencies of the `@rules_rust//proto/protobuf` rules. + """Load transitive dependencies of the `@rules_rust_ext//protobuf` rules. This macro should be called immediately after the `rust_protobuf_dependencies` macro. """ @@ -17,7 +17,7 @@ def rust_proto_protobuf_transitive_repositories(): maybe( http_archive, name = "zlib", - build_file = Label("//proto/private:BUILD.zlib.bazel"), + build_file = Label("//protobuf/3rdparty:BUILD.zlib.bazel"), sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1", strip_prefix = "zlib-1.2.11", urls = [ diff --git a/extensions/wasm_bindgen/3rdparty/BUILD.bazel b/extensions/wasm_bindgen/3rdparty/BUILD.bazel index 6ec1a9202b..ebc27aab25 100644 --- a/extensions/wasm_bindgen/3rdparty/BUILD.bazel +++ b/extensions/wasm_bindgen/3rdparty/BUILD.bazel @@ -1,5 +1,5 @@ load("@bazel_skylib//:bzl_library.bzl", "bzl_library") -load("//crate_universe:defs.bzl", "crate", "crates_vendor") +load("@rules_rust//crate_universe:defs.bzl", "crate", "crates_vendor") load("//wasm_bindgen:repositories.bzl", "WASM_BINDGEN_VERSION") exports_files([ diff --git a/extensions/wasm_bindgen/3rdparty/BUILD.wasm-bindgen-cli.bazel b/extensions/wasm_bindgen/3rdparty/BUILD.wasm-bindgen-cli.bazel index 31572c00f1..cf7be3a73f 100644 --- a/extensions/wasm_bindgen/3rdparty/BUILD.wasm-bindgen-cli.bazel +++ b/extensions/wasm_bindgen/3rdparty/BUILD.wasm-bindgen-cli.bazel @@ -1,6 +1,6 @@ load("@rules_rust//rust:defs.bzl", "rust_binary") -load("@rules_rust//wasm_bindgen:repositories.bzl", "WASM_BINDGEN_VERSION") -load("@rules_rust//wasm_bindgen/3rdparty/crates:defs.bzl", "aliases", "all_crate_deps") +load("@rules_rust_ext//wasm_bindgen:repositories.bzl", "WASM_BINDGEN_VERSION") +load("@rules_rust_ext//wasm_bindgen/3rdparty/crates:defs.bzl", "aliases", "all_crate_deps") package(default_visibility = ["//visibility:public"]) diff --git a/extensions/wasm_bindgen/3rdparty/crates/crates.bzl b/extensions/wasm_bindgen/3rdparty/crates/crates.bzl index 241052fb4b..279edc4d24 100644 --- a/extensions/wasm_bindgen/3rdparty/crates/crates.bzl +++ b/extensions/wasm_bindgen/3rdparty/crates/crates.bzl @@ -12,7 +12,7 @@ load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") load("@rules_rust//crate_universe/private:crates_vendor.bzl", "crates_vendor_remote_repository") # buildifier: disable=bzl-visibility -load("@rules_rust//wasm_bindgen/3rdparty/crates:defs.bzl", _crate_repositories = "crate_repositories") +load("@rules_rust_ext//wasm_bindgen/3rdparty/crates:defs.bzl", _crate_repositories = "crate_repositories") def crate_repositories(): """Generates repositories for vendored crates. @@ -23,8 +23,8 @@ def crate_repositories(): maybe( crates_vendor_remote_repository, name = "rules_rust_wasm_bindgen", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.bazel"), - defs_module = Label("@rules_rust//wasm_bindgen/3rdparty/crates:defs.bzl"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.bazel"), + defs_module = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:defs.bzl"), ) direct_deps = [struct(repo = "rules_rust_wasm_bindgen", is_dev_dep = False)] diff --git a/extensions/wasm_bindgen/3rdparty/crates/defs.bzl b/extensions/wasm_bindgen/3rdparty/crates/defs.bzl index c8ba748800..22f170bb45 100644 --- a/extensions/wasm_bindgen/3rdparty/crates/defs.bzl +++ b/extensions/wasm_bindgen/3rdparty/crates/defs.bzl @@ -467,7 +467,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/adler/1.0.2/download"], strip_prefix = "adler-1.0.2", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.adler-1.0.2.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.adler-1.0.2.bazel"), ) maybe( @@ -477,7 +477,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/aho-corasick/1.0.2/download"], strip_prefix = "aho-corasick-1.0.2", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.aho-corasick-1.0.2.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.aho-corasick-1.0.2.bazel"), ) maybe( @@ -487,7 +487,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/alloc-no-stdlib/2.0.4/download"], strip_prefix = "alloc-no-stdlib-2.0.4", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.alloc-no-stdlib-2.0.4.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.alloc-no-stdlib-2.0.4.bazel"), ) maybe( @@ -497,7 +497,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/alloc-stdlib/0.2.2/download"], strip_prefix = "alloc-stdlib-0.2.2", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.alloc-stdlib-0.2.2.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.alloc-stdlib-0.2.2.bazel"), ) maybe( @@ -507,7 +507,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/android-tzdata/0.1.1/download"], strip_prefix = "android-tzdata-0.1.1", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.android-tzdata-0.1.1.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.android-tzdata-0.1.1.bazel"), ) maybe( @@ -517,7 +517,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/android_system_properties/0.1.5/download"], strip_prefix = "android_system_properties-0.1.5", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.android_system_properties-0.1.5.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.android_system_properties-0.1.5.bazel"), ) maybe( @@ -527,7 +527,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/anyhow/1.0.71/download"], strip_prefix = "anyhow-1.0.71", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.anyhow-1.0.71.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.anyhow-1.0.71.bazel"), ) maybe( @@ -537,7 +537,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/ascii/1.1.0/download"], strip_prefix = "ascii-1.1.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.ascii-1.1.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.ascii-1.1.0.bazel"), ) maybe( @@ -547,7 +547,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/assert_cmd/1.0.8/download"], strip_prefix = "assert_cmd-1.0.8", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.assert_cmd-1.0.8.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.assert_cmd-1.0.8.bazel"), ) maybe( @@ -557,7 +557,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/atty/0.2.14/download"], strip_prefix = "atty-0.2.14", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.atty-0.2.14.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.atty-0.2.14.bazel"), ) maybe( @@ -567,7 +567,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/autocfg/1.1.0/download"], strip_prefix = "autocfg-1.1.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.autocfg-1.1.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.autocfg-1.1.0.bazel"), ) maybe( @@ -577,7 +577,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/base64/0.13.1/download"], strip_prefix = "base64-0.13.1", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.base64-0.13.1.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.base64-0.13.1.bazel"), ) maybe( @@ -587,7 +587,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/base64/0.21.5/download"], strip_prefix = "base64-0.21.5", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.base64-0.21.5.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.base64-0.21.5.bazel"), ) maybe( @@ -597,7 +597,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/bitflags/1.3.2/download"], strip_prefix = "bitflags-1.3.2", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.bitflags-1.3.2.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.bitflags-1.3.2.bazel"), ) maybe( @@ -607,7 +607,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/brotli-decompressor/2.5.1/download"], strip_prefix = "brotli-decompressor-2.5.1", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.brotli-decompressor-2.5.1.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.brotli-decompressor-2.5.1.bazel"), ) maybe( @@ -617,7 +617,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/bstr/0.2.17/download"], strip_prefix = "bstr-0.2.17", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.bstr-0.2.17.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.bstr-0.2.17.bazel"), ) maybe( @@ -627,7 +627,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/buf_redux/0.8.4/download"], strip_prefix = "buf_redux-0.8.4", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.buf_redux-0.8.4.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.buf_redux-0.8.4.bazel"), ) maybe( @@ -637,7 +637,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/bumpalo/3.13.0/download"], strip_prefix = "bumpalo-3.13.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.bumpalo-3.13.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.bumpalo-3.13.0.bazel"), ) maybe( @@ -647,7 +647,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/cc/1.0.83/download"], strip_prefix = "cc-1.0.83", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.cc-1.0.83.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.cc-1.0.83.bazel"), ) maybe( @@ -657,7 +657,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/cfg-if/1.0.0/download"], strip_prefix = "cfg-if-1.0.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.cfg-if-1.0.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.cfg-if-1.0.0.bazel"), ) maybe( @@ -667,7 +667,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/chrono/0.4.26/download"], strip_prefix = "chrono-0.4.26", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.chrono-0.4.26.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.chrono-0.4.26.bazel"), ) maybe( @@ -677,7 +677,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/chunked_transfer/1.4.1/download"], strip_prefix = "chunked_transfer-1.4.1", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.chunked_transfer-1.4.1.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.chunked_transfer-1.4.1.bazel"), ) maybe( @@ -687,7 +687,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/core-foundation-sys/0.8.4/download"], strip_prefix = "core-foundation-sys-0.8.4", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.core-foundation-sys-0.8.4.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.core-foundation-sys-0.8.4.bazel"), ) maybe( @@ -697,7 +697,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/crc32fast/1.3.2/download"], strip_prefix = "crc32fast-1.3.2", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.crc32fast-1.3.2.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.crc32fast-1.3.2.bazel"), ) maybe( @@ -707,7 +707,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/crossbeam-channel/0.5.8/download"], strip_prefix = "crossbeam-channel-0.5.8", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.crossbeam-channel-0.5.8.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.crossbeam-channel-0.5.8.bazel"), ) maybe( @@ -717,7 +717,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/crossbeam-deque/0.8.3/download"], strip_prefix = "crossbeam-deque-0.8.3", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.crossbeam-deque-0.8.3.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.crossbeam-deque-0.8.3.bazel"), ) maybe( @@ -727,7 +727,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/crossbeam-epoch/0.9.15/download"], strip_prefix = "crossbeam-epoch-0.9.15", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.crossbeam-epoch-0.9.15.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.crossbeam-epoch-0.9.15.bazel"), ) maybe( @@ -737,7 +737,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/crossbeam-utils/0.8.16/download"], strip_prefix = "crossbeam-utils-0.8.16", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.crossbeam-utils-0.8.16.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.crossbeam-utils-0.8.16.bazel"), ) maybe( @@ -747,7 +747,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/diff/0.1.13/download"], strip_prefix = "diff-0.1.13", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.diff-0.1.13.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.diff-0.1.13.bazel"), ) maybe( @@ -757,7 +757,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/difference/2.0.0/download"], strip_prefix = "difference-2.0.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.difference-2.0.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.difference-2.0.0.bazel"), ) maybe( @@ -767,7 +767,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/difflib/0.4.0/download"], strip_prefix = "difflib-0.4.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.difflib-0.4.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.difflib-0.4.0.bazel"), ) maybe( @@ -777,7 +777,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/doc-comment/0.3.3/download"], strip_prefix = "doc-comment-0.3.3", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.doc-comment-0.3.3.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.doc-comment-0.3.3.bazel"), ) maybe( @@ -787,7 +787,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/docopt/1.1.1/download"], strip_prefix = "docopt-1.1.1", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.docopt-1.1.1.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.docopt-1.1.1.bazel"), ) maybe( @@ -797,7 +797,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/either/1.8.1/download"], strip_prefix = "either-1.8.1", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.either-1.8.1.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.either-1.8.1.bazel"), ) maybe( @@ -807,7 +807,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/env_logger/0.8.4/download"], strip_prefix = "env_logger-0.8.4", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.env_logger-0.8.4.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.env_logger-0.8.4.bazel"), ) maybe( @@ -817,7 +817,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/equivalent/1.0.1/download"], strip_prefix = "equivalent-1.0.1", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.equivalent-1.0.1.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.equivalent-1.0.1.bazel"), ) maybe( @@ -827,7 +827,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/errno/0.3.1/download"], strip_prefix = "errno-0.3.1", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.errno-0.3.1.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.errno-0.3.1.bazel"), ) maybe( @@ -837,7 +837,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/errno-dragonfly/0.1.2/download"], strip_prefix = "errno-dragonfly-0.1.2", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.errno-dragonfly-0.1.2.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.errno-dragonfly-0.1.2.bazel"), ) maybe( @@ -847,7 +847,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/fallible-iterator/0.2.0/download"], strip_prefix = "fallible-iterator-0.2.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.fallible-iterator-0.2.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.fallible-iterator-0.2.0.bazel"), ) maybe( @@ -857,7 +857,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/fastrand/1.9.0/download"], strip_prefix = "fastrand-1.9.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.fastrand-1.9.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.fastrand-1.9.0.bazel"), ) maybe( @@ -867,7 +867,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/filetime/0.2.21/download"], strip_prefix = "filetime-0.2.21", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.filetime-0.2.21.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.filetime-0.2.21.bazel"), ) maybe( @@ -877,7 +877,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/flate2/1.0.28/download"], strip_prefix = "flate2-1.0.28", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.flate2-1.0.28.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.flate2-1.0.28.bazel"), ) maybe( @@ -887,7 +887,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/float-cmp/0.8.0/download"], strip_prefix = "float-cmp-0.8.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.float-cmp-0.8.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.float-cmp-0.8.0.bazel"), ) maybe( @@ -897,7 +897,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/form_urlencoded/1.2.0/download"], strip_prefix = "form_urlencoded-1.2.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.form_urlencoded-1.2.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.form_urlencoded-1.2.0.bazel"), ) maybe( @@ -907,7 +907,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/getrandom/0.2.10/download"], strip_prefix = "getrandom-0.2.10", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.getrandom-0.2.10.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.getrandom-0.2.10.bazel"), ) maybe( @@ -917,7 +917,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/gimli/0.26.2/download"], strip_prefix = "gimli-0.26.2", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.gimli-0.26.2.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.gimli-0.26.2.bazel"), ) maybe( @@ -927,7 +927,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/hashbrown/0.12.3/download"], strip_prefix = "hashbrown-0.12.3", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.hashbrown-0.12.3.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.hashbrown-0.12.3.bazel"), ) maybe( @@ -937,7 +937,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/hashbrown/0.14.0/download"], strip_prefix = "hashbrown-0.14.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.hashbrown-0.14.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.hashbrown-0.14.0.bazel"), ) maybe( @@ -947,7 +947,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/heck/0.3.3/download"], strip_prefix = "heck-0.3.3", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.heck-0.3.3.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.heck-0.3.3.bazel"), ) maybe( @@ -957,7 +957,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/hermit-abi/0.1.19/download"], strip_prefix = "hermit-abi-0.1.19", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.hermit-abi-0.1.19.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.hermit-abi-0.1.19.bazel"), ) maybe( @@ -967,7 +967,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/hermit-abi/0.3.2/download"], strip_prefix = "hermit-abi-0.3.2", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.hermit-abi-0.3.2.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.hermit-abi-0.3.2.bazel"), ) maybe( @@ -977,7 +977,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/httparse/1.8.0/download"], strip_prefix = "httparse-1.8.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.httparse-1.8.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.httparse-1.8.0.bazel"), ) maybe( @@ -987,7 +987,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/httpdate/1.0.2/download"], strip_prefix = "httpdate-1.0.2", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.httpdate-1.0.2.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.httpdate-1.0.2.bazel"), ) maybe( @@ -997,7 +997,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/humantime/2.1.0/download"], strip_prefix = "humantime-2.1.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.humantime-2.1.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.humantime-2.1.0.bazel"), ) maybe( @@ -1007,7 +1007,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/iana-time-zone/0.1.57/download"], strip_prefix = "iana-time-zone-0.1.57", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.iana-time-zone-0.1.57.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.iana-time-zone-0.1.57.bazel"), ) maybe( @@ -1017,7 +1017,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/iana-time-zone-haiku/0.1.2/download"], strip_prefix = "iana-time-zone-haiku-0.1.2", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.iana-time-zone-haiku-0.1.2.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.iana-time-zone-haiku-0.1.2.bazel"), ) maybe( @@ -1027,7 +1027,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/id-arena/2.2.1/download"], strip_prefix = "id-arena-2.2.1", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.id-arena-2.2.1.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.id-arena-2.2.1.bazel"), ) maybe( @@ -1037,7 +1037,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/idna/0.4.0/download"], strip_prefix = "idna-0.4.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.idna-0.4.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.idna-0.4.0.bazel"), ) maybe( @@ -1047,7 +1047,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/indexmap/1.9.3/download"], strip_prefix = "indexmap-1.9.3", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.indexmap-1.9.3.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.indexmap-1.9.3.bazel"), ) maybe( @@ -1057,7 +1057,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/indexmap/2.0.0/download"], strip_prefix = "indexmap-2.0.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.indexmap-2.0.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.indexmap-2.0.0.bazel"), ) maybe( @@ -1067,7 +1067,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/instant/0.1.12/download"], strip_prefix = "instant-0.1.12", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.instant-0.1.12.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.instant-0.1.12.bazel"), ) maybe( @@ -1077,7 +1077,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/io-lifetimes/1.0.11/download"], strip_prefix = "io-lifetimes-1.0.11", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.io-lifetimes-1.0.11.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.io-lifetimes-1.0.11.bazel"), ) maybe( @@ -1087,7 +1087,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/itertools/0.10.5/download"], strip_prefix = "itertools-0.10.5", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.itertools-0.10.5.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.itertools-0.10.5.bazel"), ) maybe( @@ -1097,7 +1097,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/itoa/1.0.8/download"], strip_prefix = "itoa-1.0.8", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.itoa-1.0.8.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.itoa-1.0.8.bazel"), ) maybe( @@ -1107,7 +1107,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/js-sys/0.3.64/download"], strip_prefix = "js-sys-0.3.64", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.js-sys-0.3.64.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.js-sys-0.3.64.bazel"), ) maybe( @@ -1117,7 +1117,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/lazy_static/1.4.0/download"], strip_prefix = "lazy_static-1.4.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.lazy_static-1.4.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.lazy_static-1.4.0.bazel"), ) maybe( @@ -1127,7 +1127,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/leb128/0.2.5/download"], strip_prefix = "leb128-0.2.5", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.leb128-0.2.5.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.leb128-0.2.5.bazel"), ) maybe( @@ -1137,7 +1137,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/libc/0.2.150/download"], strip_prefix = "libc-0.2.150", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.libc-0.2.150.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.libc-0.2.150.bazel"), ) maybe( @@ -1147,7 +1147,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/linux-raw-sys/0.3.8/download"], strip_prefix = "linux-raw-sys-0.3.8", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.linux-raw-sys-0.3.8.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.linux-raw-sys-0.3.8.bazel"), ) maybe( @@ -1157,7 +1157,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/log/0.4.19/download"], strip_prefix = "log-0.4.19", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.log-0.4.19.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.log-0.4.19.bazel"), ) maybe( @@ -1167,7 +1167,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/memchr/2.5.0/download"], strip_prefix = "memchr-2.5.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.memchr-2.5.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.memchr-2.5.0.bazel"), ) maybe( @@ -1177,7 +1177,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/memoffset/0.9.0/download"], strip_prefix = "memoffset-0.9.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.memoffset-0.9.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.memoffset-0.9.0.bazel"), ) maybe( @@ -1187,7 +1187,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/mime/0.3.17/download"], strip_prefix = "mime-0.3.17", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.mime-0.3.17.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.mime-0.3.17.bazel"), ) maybe( @@ -1197,7 +1197,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/mime_guess/2.0.4/download"], strip_prefix = "mime_guess-2.0.4", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.mime_guess-2.0.4.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.mime_guess-2.0.4.bazel"), ) maybe( @@ -1207,7 +1207,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/miniz_oxide/0.7.1/download"], strip_prefix = "miniz_oxide-0.7.1", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.miniz_oxide-0.7.1.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.miniz_oxide-0.7.1.bazel"), ) maybe( @@ -1217,7 +1217,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/multipart/0.18.0/download"], strip_prefix = "multipart-0.18.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.multipart-0.18.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.multipart-0.18.0.bazel"), ) maybe( @@ -1227,7 +1227,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/normalize-line-endings/0.3.0/download"], strip_prefix = "normalize-line-endings-0.3.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.normalize-line-endings-0.3.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.normalize-line-endings-0.3.0.bazel"), ) maybe( @@ -1237,7 +1237,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/num-traits/0.2.15/download"], strip_prefix = "num-traits-0.2.15", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.num-traits-0.2.15.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.num-traits-0.2.15.bazel"), ) maybe( @@ -1247,7 +1247,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/num_cpus/1.16.0/download"], strip_prefix = "num_cpus-1.16.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.num_cpus-1.16.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.num_cpus-1.16.0.bazel"), ) maybe( @@ -1257,7 +1257,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/num_threads/0.1.6/download"], strip_prefix = "num_threads-0.1.6", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.num_threads-0.1.6.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.num_threads-0.1.6.bazel"), ) maybe( @@ -1267,7 +1267,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/once_cell/1.18.0/download"], strip_prefix = "once_cell-1.18.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.once_cell-1.18.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.once_cell-1.18.0.bazel"), ) maybe( @@ -1277,7 +1277,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/percent-encoding/2.3.0/download"], strip_prefix = "percent-encoding-2.3.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.percent-encoding-2.3.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.percent-encoding-2.3.0.bazel"), ) maybe( @@ -1287,7 +1287,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/ppv-lite86/0.2.17/download"], strip_prefix = "ppv-lite86-0.2.17", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.ppv-lite86-0.2.17.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.ppv-lite86-0.2.17.bazel"), ) maybe( @@ -1297,7 +1297,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/predicates/1.0.8/download"], strip_prefix = "predicates-1.0.8", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.predicates-1.0.8.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.predicates-1.0.8.bazel"), ) maybe( @@ -1307,7 +1307,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/predicates/2.1.5/download"], strip_prefix = "predicates-2.1.5", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.predicates-2.1.5.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.predicates-2.1.5.bazel"), ) maybe( @@ -1317,7 +1317,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/predicates-core/1.0.6/download"], strip_prefix = "predicates-core-1.0.6", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.predicates-core-1.0.6.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.predicates-core-1.0.6.bazel"), ) maybe( @@ -1327,7 +1327,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/predicates-tree/1.0.9/download"], strip_prefix = "predicates-tree-1.0.9", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.predicates-tree-1.0.9.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.predicates-tree-1.0.9.bazel"), ) maybe( @@ -1337,7 +1337,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/proc-macro2/1.0.64/download"], strip_prefix = "proc-macro2-1.0.64", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.proc-macro2-1.0.64.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.proc-macro2-1.0.64.bazel"), ) maybe( @@ -1347,7 +1347,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/quick-error/1.2.3/download"], strip_prefix = "quick-error-1.2.3", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.quick-error-1.2.3.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.quick-error-1.2.3.bazel"), ) maybe( @@ -1357,7 +1357,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/quote/1.0.29/download"], strip_prefix = "quote-1.0.29", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.quote-1.0.29.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.quote-1.0.29.bazel"), ) maybe( @@ -1367,7 +1367,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/rand/0.8.5/download"], strip_prefix = "rand-0.8.5", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.rand-0.8.5.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.rand-0.8.5.bazel"), ) maybe( @@ -1377,7 +1377,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/rand_chacha/0.3.1/download"], strip_prefix = "rand_chacha-0.3.1", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.rand_chacha-0.3.1.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.rand_chacha-0.3.1.bazel"), ) maybe( @@ -1387,7 +1387,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/rand_core/0.6.4/download"], strip_prefix = "rand_core-0.6.4", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.rand_core-0.6.4.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.rand_core-0.6.4.bazel"), ) maybe( @@ -1397,7 +1397,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/rayon/1.7.0/download"], strip_prefix = "rayon-1.7.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.rayon-1.7.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.rayon-1.7.0.bazel"), ) maybe( @@ -1407,7 +1407,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/rayon-core/1.11.0/download"], strip_prefix = "rayon-core-1.11.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.rayon-core-1.11.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.rayon-core-1.11.0.bazel"), ) maybe( @@ -1417,7 +1417,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/redox_syscall/0.2.16/download"], strip_prefix = "redox_syscall-0.2.16", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.redox_syscall-0.2.16.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.redox_syscall-0.2.16.bazel"), ) maybe( @@ -1427,7 +1427,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/redox_syscall/0.3.5/download"], strip_prefix = "redox_syscall-0.3.5", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.redox_syscall-0.3.5.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.redox_syscall-0.3.5.bazel"), ) maybe( @@ -1437,7 +1437,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/regex/1.9.1/download"], strip_prefix = "regex-1.9.1", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.regex-1.9.1.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.regex-1.9.1.bazel"), ) maybe( @@ -1447,7 +1447,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/regex-automata/0.1.10/download"], strip_prefix = "regex-automata-0.1.10", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.regex-automata-0.1.10.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.regex-automata-0.1.10.bazel"), ) maybe( @@ -1457,7 +1457,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/regex-automata/0.3.3/download"], strip_prefix = "regex-automata-0.3.3", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.regex-automata-0.3.3.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.regex-automata-0.3.3.bazel"), ) maybe( @@ -1467,7 +1467,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/regex-syntax/0.7.4/download"], strip_prefix = "regex-syntax-0.7.4", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.regex-syntax-0.7.4.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.regex-syntax-0.7.4.bazel"), ) maybe( @@ -1477,7 +1477,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/ring/0.17.5/download"], strip_prefix = "ring-0.17.5", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.ring-0.17.5.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.ring-0.17.5.bazel"), ) maybe( @@ -1487,7 +1487,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/rouille/3.6.2/download"], strip_prefix = "rouille-3.6.2", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.rouille-3.6.2.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.rouille-3.6.2.bazel"), ) maybe( @@ -1497,7 +1497,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/rustc-demangle/0.1.23/download"], strip_prefix = "rustc-demangle-0.1.23", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.rustc-demangle-0.1.23.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.rustc-demangle-0.1.23.bazel"), ) maybe( @@ -1507,7 +1507,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/rustix/0.37.23/download"], strip_prefix = "rustix-0.37.23", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.rustix-0.37.23.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.rustix-0.37.23.bazel"), ) maybe( @@ -1517,7 +1517,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/rustls/0.21.8/download"], strip_prefix = "rustls-0.21.8", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.rustls-0.21.8.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.rustls-0.21.8.bazel"), ) maybe( @@ -1527,7 +1527,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/rustls-webpki/0.101.7/download"], strip_prefix = "rustls-webpki-0.101.7", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.rustls-webpki-0.101.7.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.rustls-webpki-0.101.7.bazel"), ) maybe( @@ -1537,7 +1537,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/ryu/1.0.14/download"], strip_prefix = "ryu-1.0.14", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.ryu-1.0.14.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.ryu-1.0.14.bazel"), ) maybe( @@ -1547,7 +1547,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/safemem/0.3.3/download"], strip_prefix = "safemem-0.3.3", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.safemem-0.3.3.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.safemem-0.3.3.bazel"), ) maybe( @@ -1557,7 +1557,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/scopeguard/1.1.0/download"], strip_prefix = "scopeguard-1.1.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.scopeguard-1.1.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.scopeguard-1.1.0.bazel"), ) maybe( @@ -1567,7 +1567,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/sct/0.7.1/download"], strip_prefix = "sct-0.7.1", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.sct-0.7.1.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.sct-0.7.1.bazel"), ) maybe( @@ -1577,7 +1577,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/semver/1.0.17/download"], strip_prefix = "semver-1.0.17", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.semver-1.0.17.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.semver-1.0.17.bazel"), ) maybe( @@ -1587,7 +1587,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/serde/1.0.171/download"], strip_prefix = "serde-1.0.171", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.serde-1.0.171.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.serde-1.0.171.bazel"), ) maybe( @@ -1597,7 +1597,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/serde_derive/1.0.171/download"], strip_prefix = "serde_derive-1.0.171", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.serde_derive-1.0.171.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.serde_derive-1.0.171.bazel"), ) maybe( @@ -1607,7 +1607,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/serde_json/1.0.102/download"], strip_prefix = "serde_json-1.0.102", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.serde_json-1.0.102.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.serde_json-1.0.102.bazel"), ) maybe( @@ -1617,7 +1617,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/sha1_smol/1.0.0/download"], strip_prefix = "sha1_smol-1.0.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.sha1_smol-1.0.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.sha1_smol-1.0.0.bazel"), ) maybe( @@ -1627,7 +1627,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/spin/0.9.8/download"], strip_prefix = "spin-0.9.8", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.spin-0.9.8.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.spin-0.9.8.bazel"), ) maybe( @@ -1637,7 +1637,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/stable_deref_trait/1.2.0/download"], strip_prefix = "stable_deref_trait-1.2.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.stable_deref_trait-1.2.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.stable_deref_trait-1.2.0.bazel"), ) maybe( @@ -1647,7 +1647,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/strsim/0.10.0/download"], strip_prefix = "strsim-0.10.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.strsim-0.10.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.strsim-0.10.0.bazel"), ) maybe( @@ -1657,7 +1657,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/syn/1.0.109/download"], strip_prefix = "syn-1.0.109", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.syn-1.0.109.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.syn-1.0.109.bazel"), ) maybe( @@ -1667,7 +1667,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/syn/2.0.25/download"], strip_prefix = "syn-2.0.25", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.syn-2.0.25.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.syn-2.0.25.bazel"), ) maybe( @@ -1677,7 +1677,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tempfile/3.6.0/download"], strip_prefix = "tempfile-3.6.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.tempfile-3.6.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.tempfile-3.6.0.bazel"), ) maybe( @@ -1687,7 +1687,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/termcolor/1.2.0/download"], strip_prefix = "termcolor-1.2.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.termcolor-1.2.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.termcolor-1.2.0.bazel"), ) maybe( @@ -1697,7 +1697,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/termtree/0.4.1/download"], strip_prefix = "termtree-0.4.1", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.termtree-0.4.1.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.termtree-0.4.1.bazel"), ) maybe( @@ -1707,7 +1707,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/threadpool/1.8.1/download"], strip_prefix = "threadpool-1.8.1", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.threadpool-1.8.1.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.threadpool-1.8.1.bazel"), ) maybe( @@ -1717,7 +1717,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/time/0.3.23/download"], strip_prefix = "time-0.3.23", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.time-0.3.23.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.time-0.3.23.bazel"), ) maybe( @@ -1727,7 +1727,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/time-core/0.1.1/download"], strip_prefix = "time-core-0.1.1", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.time-core-0.1.1.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.time-core-0.1.1.bazel"), ) maybe( @@ -1737,7 +1737,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tiny_http/0.12.0/download"], strip_prefix = "tiny_http-0.12.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.tiny_http-0.12.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.tiny_http-0.12.0.bazel"), ) maybe( @@ -1747,7 +1747,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tinyvec/1.6.0/download"], strip_prefix = "tinyvec-1.6.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.tinyvec-1.6.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.tinyvec-1.6.0.bazel"), ) maybe( @@ -1757,7 +1757,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/tinyvec_macros/0.1.1/download"], strip_prefix = "tinyvec_macros-0.1.1", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.tinyvec_macros-0.1.1.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.tinyvec_macros-0.1.1.bazel"), ) maybe( @@ -1767,7 +1767,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/twoway/0.1.8/download"], strip_prefix = "twoway-0.1.8", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.twoway-0.1.8.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.twoway-0.1.8.bazel"), ) maybe( @@ -1777,7 +1777,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/unicase/2.6.0/download"], strip_prefix = "unicase-2.6.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.unicase-2.6.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.unicase-2.6.0.bazel"), ) maybe( @@ -1787,7 +1787,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/unicode-bidi/0.3.13/download"], strip_prefix = "unicode-bidi-0.3.13", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.unicode-bidi-0.3.13.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.unicode-bidi-0.3.13.bazel"), ) maybe( @@ -1797,7 +1797,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/unicode-ident/1.0.10/download"], strip_prefix = "unicode-ident-1.0.10", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.unicode-ident-1.0.10.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.unicode-ident-1.0.10.bazel"), ) maybe( @@ -1807,7 +1807,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/unicode-normalization/0.1.22/download"], strip_prefix = "unicode-normalization-0.1.22", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.unicode-normalization-0.1.22.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.unicode-normalization-0.1.22.bazel"), ) maybe( @@ -1817,7 +1817,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/unicode-segmentation/1.10.1/download"], strip_prefix = "unicode-segmentation-1.10.1", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.unicode-segmentation-1.10.1.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.unicode-segmentation-1.10.1.bazel"), ) maybe( @@ -1827,7 +1827,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/untrusted/0.9.0/download"], strip_prefix = "untrusted-0.9.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.untrusted-0.9.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.untrusted-0.9.0.bazel"), ) maybe( @@ -1837,7 +1837,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/ureq/2.8.0/download"], strip_prefix = "ureq-2.8.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.ureq-2.8.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.ureq-2.8.0.bazel"), ) maybe( @@ -1847,7 +1847,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/url/2.4.0/download"], strip_prefix = "url-2.4.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.url-2.4.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.url-2.4.0.bazel"), ) maybe( @@ -1857,7 +1857,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/version_check/0.9.4/download"], strip_prefix = "version_check-0.9.4", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.version_check-0.9.4.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.version_check-0.9.4.bazel"), ) maybe( @@ -1867,7 +1867,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/wait-timeout/0.2.0/download"], strip_prefix = "wait-timeout-0.2.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wait-timeout-0.2.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.wait-timeout-0.2.0.bazel"), ) maybe( @@ -1877,7 +1877,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/walrus/0.20.3/download"], strip_prefix = "walrus-0.20.3", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.walrus-0.20.3.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.walrus-0.20.3.bazel"), ) maybe( @@ -1887,7 +1887,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/walrus-macro/0.19.0/download"], strip_prefix = "walrus-macro-0.19.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.walrus-macro-0.19.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.walrus-macro-0.19.0.bazel"), ) maybe( @@ -1897,7 +1897,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/wasi/0.11.0+wasi-snapshot-preview1/download"], strip_prefix = "wasi-0.11.0+wasi-snapshot-preview1", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel"), ) maybe( @@ -1907,7 +1907,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/wasm-bindgen/0.2.92/download"], strip_prefix = "wasm-bindgen-0.2.92", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-0.2.92.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-0.2.92.bazel"), ) maybe( @@ -1917,7 +1917,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/wasm-bindgen-backend/0.2.92/download"], strip_prefix = "wasm-bindgen-backend-0.2.92", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-backend-0.2.92.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-backend-0.2.92.bazel"), ) maybe( @@ -1927,7 +1927,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/wasm-bindgen-cli-support/0.2.92/download"], strip_prefix = "wasm-bindgen-cli-support-0.2.92", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-cli-support-0.2.92.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-cli-support-0.2.92.bazel"), ) maybe( @@ -1937,7 +1937,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/wasm-bindgen-externref-xform/0.2.92/download"], strip_prefix = "wasm-bindgen-externref-xform-0.2.92", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-externref-xform-0.2.92.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-externref-xform-0.2.92.bazel"), ) maybe( @@ -1947,7 +1947,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/wasm-bindgen-macro/0.2.92/download"], strip_prefix = "wasm-bindgen-macro-0.2.92", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-macro-0.2.92.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-macro-0.2.92.bazel"), ) maybe( @@ -1957,7 +1957,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/wasm-bindgen-macro-support/0.2.92/download"], strip_prefix = "wasm-bindgen-macro-support-0.2.92", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-macro-support-0.2.92.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-macro-support-0.2.92.bazel"), ) maybe( @@ -1967,7 +1967,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/wasm-bindgen-multi-value-xform/0.2.92/download"], strip_prefix = "wasm-bindgen-multi-value-xform-0.2.92", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-multi-value-xform-0.2.92.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-multi-value-xform-0.2.92.bazel"), ) maybe( @@ -1977,7 +1977,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/wasm-bindgen-shared/0.2.92/download"], strip_prefix = "wasm-bindgen-shared-0.2.92", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-shared-0.2.92.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-shared-0.2.92.bazel"), ) maybe( @@ -1987,7 +1987,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/wasm-bindgen-threads-xform/0.2.92/download"], strip_prefix = "wasm-bindgen-threads-xform-0.2.92", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-threads-xform-0.2.92.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-threads-xform-0.2.92.bazel"), ) maybe( @@ -1997,7 +1997,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/wasm-bindgen-wasm-conventions/0.2.92/download"], strip_prefix = "wasm-bindgen-wasm-conventions-0.2.92", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-wasm-conventions-0.2.92.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-wasm-conventions-0.2.92.bazel"), ) maybe( @@ -2007,7 +2007,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/wasm-bindgen-wasm-interpreter/0.2.92/download"], strip_prefix = "wasm-bindgen-wasm-interpreter-0.2.92", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-wasm-interpreter-0.2.92.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-wasm-interpreter-0.2.92.bazel"), ) maybe( @@ -2017,7 +2017,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/wasm-encoder/0.29.0/download"], strip_prefix = "wasm-encoder-0.29.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasm-encoder-0.29.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.wasm-encoder-0.29.0.bazel"), ) maybe( @@ -2027,7 +2027,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/wasmparser/0.102.0/download"], strip_prefix = "wasmparser-0.102.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasmparser-0.102.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.wasmparser-0.102.0.bazel"), ) maybe( @@ -2037,7 +2037,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/wasmparser/0.108.0/download"], strip_prefix = "wasmparser-0.108.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasmparser-0.108.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.wasmparser-0.108.0.bazel"), ) maybe( @@ -2047,7 +2047,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/wasmparser/0.80.2/download"], strip_prefix = "wasmparser-0.80.2", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasmparser-0.80.2.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.wasmparser-0.80.2.bazel"), ) maybe( @@ -2057,7 +2057,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/wasmprinter/0.2.60/download"], strip_prefix = "wasmprinter-0.2.60", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasmprinter-0.2.60.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.wasmprinter-0.2.60.bazel"), ) maybe( @@ -2067,7 +2067,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/webpki-roots/0.25.2/download"], strip_prefix = "webpki-roots-0.25.2", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.webpki-roots-0.25.2.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.webpki-roots-0.25.2.bazel"), ) maybe( @@ -2077,7 +2077,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/winapi/0.3.9/download"], strip_prefix = "winapi-0.3.9", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.winapi-0.3.9.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.winapi-0.3.9.bazel"), ) maybe( @@ -2087,7 +2087,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/winapi-i686-pc-windows-gnu/0.4.0/download"], strip_prefix = "winapi-i686-pc-windows-gnu-0.4.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel"), ) maybe( @@ -2097,7 +2097,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/winapi-util/0.1.5/download"], strip_prefix = "winapi-util-0.1.5", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.winapi-util-0.1.5.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.winapi-util-0.1.5.bazel"), ) maybe( @@ -2107,7 +2107,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/winapi-x86_64-pc-windows-gnu/0.4.0/download"], strip_prefix = "winapi-x86_64-pc-windows-gnu-0.4.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel"), ) maybe( @@ -2117,7 +2117,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/windows/0.48.0/download"], strip_prefix = "windows-0.48.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.windows-0.48.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.windows-0.48.0.bazel"), ) maybe( @@ -2127,7 +2127,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/windows-sys/0.48.0/download"], strip_prefix = "windows-sys-0.48.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.windows-sys-0.48.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.windows-sys-0.48.0.bazel"), ) maybe( @@ -2137,7 +2137,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/windows-targets/0.48.1/download"], strip_prefix = "windows-targets-0.48.1", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.windows-targets-0.48.1.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.windows-targets-0.48.1.bazel"), ) maybe( @@ -2147,7 +2147,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/windows_aarch64_gnullvm/0.48.0/download"], strip_prefix = "windows_aarch64_gnullvm-0.48.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.windows_aarch64_gnullvm-0.48.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.windows_aarch64_gnullvm-0.48.0.bazel"), ) maybe( @@ -2157,7 +2157,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/windows_aarch64_msvc/0.48.0/download"], strip_prefix = "windows_aarch64_msvc-0.48.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.windows_aarch64_msvc-0.48.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.windows_aarch64_msvc-0.48.0.bazel"), ) maybe( @@ -2167,7 +2167,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/windows_i686_gnu/0.48.0/download"], strip_prefix = "windows_i686_gnu-0.48.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.windows_i686_gnu-0.48.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.windows_i686_gnu-0.48.0.bazel"), ) maybe( @@ -2177,7 +2177,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/windows_i686_msvc/0.48.0/download"], strip_prefix = "windows_i686_msvc-0.48.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.windows_i686_msvc-0.48.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.windows_i686_msvc-0.48.0.bazel"), ) maybe( @@ -2187,7 +2187,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/windows_x86_64_gnu/0.48.0/download"], strip_prefix = "windows_x86_64_gnu-0.48.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.windows_x86_64_gnu-0.48.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.windows_x86_64_gnu-0.48.0.bazel"), ) maybe( @@ -2197,7 +2197,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/windows_x86_64_gnullvm/0.48.0/download"], strip_prefix = "windows_x86_64_gnullvm-0.48.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.windows_x86_64_gnullvm-0.48.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.windows_x86_64_gnullvm-0.48.0.bazel"), ) maybe( @@ -2207,7 +2207,7 @@ def crate_repositories(): type = "tar.gz", urls = ["https://static.crates.io/crates/windows_x86_64_msvc/0.48.0/download"], strip_prefix = "windows_x86_64_msvc-0.48.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.windows_x86_64_msvc-0.48.0.bazel"), + build_file = Label("@rules_rust_ext//wasm_bindgen/3rdparty/crates:BUILD.windows_x86_64_msvc-0.48.0.bazel"), ) return [ diff --git a/extensions/wasm_bindgen/BUILD.bazel b/extensions/wasm_bindgen/BUILD.bazel index a5e7560c9d..d6808d9439 100644 --- a/extensions/wasm_bindgen/BUILD.bazel +++ b/extensions/wasm_bindgen/BUILD.bazel @@ -3,6 +3,10 @@ load("//wasm_bindgen:defs.bzl", "rust_wasm_bindgen_toolchain") package(default_visibility = ["//visibility:public"]) +exports_files([ + "defs.bzl", +]) + toolchain_type( name = "toolchain_type", ) @@ -11,7 +15,6 @@ bzl_library( name = "bzl_lib", srcs = glob(["**/*.bzl"]), deps = [ - "//rust:bzl_lib", "//wasm_bindgen/3rdparty:bzl_lib", "//wasm_bindgen/private:bzl_lib", ], @@ -19,7 +22,7 @@ bzl_library( rust_wasm_bindgen_toolchain( name = "default_wasm_bindgen_toolchain_impl", - bindgen = "@rules_rust//wasm_bindgen/3rdparty:wasm_bindgen_cli", + bindgen = "@rules_rust_ext//wasm_bindgen/3rdparty:wasm_bindgen_cli", ) toolchain( diff --git a/extensions/wasm_bindgen/DEVELOPMENT.md b/extensions/wasm_bindgen/DEVELOPMENT.md index a68b99effb..b18c01e9b0 100644 --- a/extensions/wasm_bindgen/DEVELOPMENT.md +++ b/extensions/wasm_bindgen/DEVELOPMENT.md @@ -4,8 +4,8 @@ Use the followign steps to update to new versions of [wasm-bindgen][wb]. -1. Update `WASM_BINDGEN_VERSION` in `@rules_rust//wasm_bindgen:repositories.bzl` -2. Update the sha256 value for the `rules_rust_wasm_bindgen_cli` repository defined in `@rules_rust//wasm_bindgen:repositories.bzl` to match the artifact from the updated `WASM_BINDGEN_VERSION` value. +1. Update `WASM_BINDGEN_VERSION` in `@rules_rust_ext//wasm_bindgen:repositories.bzl` +2. Update the sha256 value for the `rules_rust_wasm_bindgen_cli` repository defined in `@rules_rust_ext//wasm_bindgen:repositories.bzl` to match the artifact from the updated `WASM_BINDGEN_VERSION` value. 3. Regenerate dependencies by running `bazel run //wasm_bindgen/3rdparty:crates_vendor -- --repin` from the root of `rules_rust`. 4. Verify your changes by running `bazel test //wasm/...` from the `rules_rust/examples` directory. diff --git a/extensions/wasm_bindgen/defs.bzl b/extensions/wasm_bindgen/defs.bzl index 280c664e6d..2358f1fd9e 100644 --- a/extensions/wasm_bindgen/defs.bzl +++ b/extensions/wasm_bindgen/defs.bzl @@ -1,4 +1,40 @@ -"""Bazel rules for [wasm-bindgen](https://crates.io/crates/wasm-bindgen)""" +"""# rules_rust_ext wasm_bindgen + +Bazel rules for generating wasm modules for Javascript using [wasm-bindgen][wb]. + +## Setup + +To begin using the `wasm-bindgen` rules, users can load the necessary dependencies +in their workspace by adding the following to their `WORKSPACE.bazel` file. + +```python +load("@rules_rust_ext//wasm_bindgen:repositories.bzl", "rust_wasm_bindgen_dependencies", "rust_wasm_bindgen_register_toolchains") + +rust_wasm_bindgen_dependencies() + +rust_wasm_bindgen_register_toolchains() +``` + +This should enable users to start using the [rust_wasm_bindgen](#rust_wasm_bindgen) +rule. However, it's common to want to control the version of `wasm-bindgen` in the +workspace instead of relying on the one provided by `rules_rust`. In this case, users +should avoid calling `rust_wasm_bindgen_register_toolchains` and instead use the +[rust_wasm_bindgen_toolchain](#rust_wasm_bindgen_toolchain) rule to define their own +toolchains to register in the workspace. + +### Interfacing with Javascript rules + +While it's recommended for users to mantain their own , in the +`@rules_rust_ext//wasm_bindgen` package there exists interface sub-packages for various +Javascript Bazel rules. E.g. `build_bazel_rules_nodejs` or `aspect_rules_js`. The +rules defined there are a more convenient way to use `rust_wasm_bindgen` with the +associated javascript rules due to the inclusion of additional providers. Each +directory contains a `defs.bzl` file that defines the different variants of +`rust_wasm_bindgen`. (e.g. `nodejs_rust_wasm_bindgen` for the `rules_nodejs` submodule). + + +[wb]: https://github.com/rustwasm/wasm-bindgen +""" load( "//wasm_bindgen:providers.bzl", diff --git a/extensions/wasm_bindgen/private/BUILD.bazel b/extensions/wasm_bindgen/private/BUILD.bazel index 9f217f8f90..0b9e9de6d7 100644 --- a/extensions/wasm_bindgen/private/BUILD.bazel +++ b/extensions/wasm_bindgen/private/BUILD.bazel @@ -7,4 +7,7 @@ bzl_library( "wasm_bindgen.bzl", ], visibility = ["//wasm_bindgen:__pkg__"], + deps = [ + "@rules_rust//rust:bzl_lib", + ], ) diff --git a/extensions/wasm_bindgen/private/transitions.bzl b/extensions/wasm_bindgen/private/transitions.bzl index 9ae19946cb..9025a7ad86 100644 --- a/extensions/wasm_bindgen/private/transitions.bzl +++ b/extensions/wasm_bindgen/private/transitions.bzl @@ -12,7 +12,7 @@ def _wasm_bindgen_transition(_settings, attr): Returns: dict: A dict of new build settings values to apply """ - return {"//command_line_option:platforms": str(Label("//rust/platform:{}".format(attr.target_arch)))} + return {"//command_line_option:platforms": str(Label("@rules_rust//rust/platform:{}".format(attr.target_arch)))} wasm_bindgen_transition = transition( implementation = _wasm_bindgen_transition, diff --git a/extensions/wasm_bindgen/private/wasm_bindgen.bzl b/extensions/wasm_bindgen/private/wasm_bindgen.bzl index cd382e4777..a1773bd8cd 100644 --- a/extensions/wasm_bindgen/private/wasm_bindgen.bzl +++ b/extensions/wasm_bindgen/private/wasm_bindgen.bzl @@ -1,8 +1,8 @@ """Bazel rules for [wasm-bindgen](https://crates.io/crates/wasm-bindgen)""" -load("//rust:defs.bzl", "rust_common") +load("@rules_rust//rust:defs.bzl", "rust_common") load("//wasm_bindgen:providers.bzl", "RustWasmBindgenInfo") -load("//wasm_bindgen/private:transitions.bzl", "wasm_bindgen_transition") +load(":transitions.bzl", "wasm_bindgen_transition") def rust_wasm_bindgen_action(ctx, toolchain, wasm_file, target_output, bindgen_flags = []): """Spawn a `RustWasmBindgen` action. @@ -126,7 +126,7 @@ WASM_BINDGEN_ATTR = { mandatory = True, ), "_allowlist_function_transition": attr.label( - default = Label("//tools/allowlists/function_transition_allowlist"), + default = Label("@rules_rust//tools/allowlists/function_transition_allowlist"), ), } @@ -160,7 +160,7 @@ An example of this rule in use can be seen at [@rules_rust//examples/wasm](../ex mandatory = True, ), "_allowlist_function_transition": attr.label( - default = Label("//tools/allowlists/function_transition_allowlist"), + default = Label("@rules_rust//tools/allowlists/function_transition_allowlist"), ), }, toolchains = [ @@ -182,7 +182,7 @@ In cases where users want to control or change the version of `wasm-bindgen` use a unique toolchain can be created as in the example below: ```python -load("@rules_rust//bindgen:bindgen.bzl", "rust_bindgen_toolchain") +load("@rules_rust_ext//bindgen:bindgen.bzl", "rust_bindgen_toolchain") rust_bindgen_toolchain( bindgen = "//3rdparty/crates:wasm_bindgen_cli__bin", @@ -191,7 +191,7 @@ rust_bindgen_toolchain( toolchain( name = "wasm_bindgen_toolchain", toolchain = "wasm_bindgen_toolchain_impl", - toolchain_type = "@rules_rust//wasm_bindgen:toolchain_type", + toolchain_type = "@rules_rust_ext//wasm_bindgen:toolchain_type", ) ``` diff --git a/extensions/wasm_bindgen/rules_js/repositories.bzl b/extensions/wasm_bindgen/rules_js/repositories.bzl index 5b7cbb3ed1..22ebf2d754 100644 --- a/extensions/wasm_bindgen/rules_js/repositories.bzl +++ b/extensions/wasm_bindgen/rules_js/repositories.bzl @@ -1,4 +1,4 @@ -"""TODO""" +"""Rust wasm-bindgen rules_js dependencies.""" load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") diff --git a/extensions/wasm_bindgen/rules_nodejs/repositories.bzl b/extensions/wasm_bindgen/rules_nodejs/repositories.bzl index e51eac3498..b766859062 100644 --- a/extensions/wasm_bindgen/rules_nodejs/repositories.bzl +++ b/extensions/wasm_bindgen/rules_nodejs/repositories.bzl @@ -1,4 +1,4 @@ -"""TODO""" +"""Rust wasm-bindgen rules_nodejs dependencies.""" load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") diff --git a/rust/private/BUILD.bazel b/rust/private/BUILD.bazel index 99d0fd79fd..0ef93672e3 100644 --- a/rust/private/BUILD.bazel +++ b/rust/private/BUILD.bazel @@ -3,11 +3,21 @@ load("//rust/private:rust_analyzer.bzl", "rust_analyzer_detect_sysroot") load("//rust/private:rustc.bzl", "is_proc_macro_dep", "is_proc_macro_dep_enabled") load("//rust/private:stamp.bzl", "stamp_build_setting") +bzl_library( + name = "bazel_tools_bzl_lib", + srcs = ["@bazel_tools//tools:bzl_srcs"], +) + bzl_library( name = "bzl_lib", srcs = glob(["**/*.bzl"]), visibility = ["//rust:__subpackages__"], - deps = ["//rust/platform:bzl_lib"], + deps = [ + ":bazel_tools_bzl_lib", + "//rust/platform:bzl_lib", + "@bazel_skylib//lib:paths", + "@bazel_skylib//rules:common_settings", + ], ) stamp_build_setting(name = "stamp") diff --git a/rust/private/extensions.bzl b/rust/private/extensions.bzl index 62d0b73a23..08401875f0 100644 --- a/rust/private/extensions.bzl +++ b/rust/private/extensions.bzl @@ -1,14 +1,9 @@ """Bzlmod module extensions that are only used internally""" load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("//bindgen:repositories.bzl", "rust_bindgen_dependencies") load("//crate_universe:repositories.bzl", "crate_universe_dependencies") -load("//proto/prost:repositories.bzl", "rust_prost_dependencies") -load("//proto/protobuf:repositories.bzl", "rust_proto_protobuf_dependencies") load("//rust/private:repository_utils.bzl", "TINYJSON_KWARGS") -load("//test:deps.bzl", "rules_rust_test_deps") load("//tools/rust_analyzer:deps.bzl", "rust_analyzer_dependencies") -load("//wasm_bindgen:repositories.bzl", "rust_wasm_bindgen_dependencies") def _internal_deps_impl(module_ctx): # This should contain the subset of WORKSPACE.bazel that defines @@ -20,12 +15,7 @@ def _internal_deps_impl(module_ctx): http_archive(**TINYJSON_KWARGS) direct_deps.extend(crate_universe_dependencies()) - direct_deps.extend(rust_prost_dependencies(bzlmod = True)) - direct_deps.extend(rust_proto_protobuf_dependencies(bzlmod = True)) - direct_deps.extend(rust_bindgen_dependencies()) direct_deps.extend(rust_analyzer_dependencies()) - direct_deps.extend(rust_wasm_bindgen_dependencies()) - direct_deps.extend(rules_rust_test_deps()) # is_dev_dep is ignored here. It's not relevant for internal_deps, as dev # dependencies are only relevant for module extensions that can be used diff --git a/test/bzl_version/BUILD.bazel b/test/bzl_version/BUILD.bazel index f0157e260f..9b21f73060 100644 --- a/test/bzl_version/BUILD.bazel +++ b/test/bzl_version/BUILD.bazel @@ -1,18 +1,10 @@ -load("//:version.bzl", "VERSION") -load("//rust:defs.bzl", "rust_test") +load(":bzl_version_test.bzl", "bzl_version_test") -rust_test( +exports_files([ + "bzl_version_test.rs", +]) + +bzl_version_test( name = "bzl_version_test", - srcs = ["bzl_version_test.rs"], - data = [ - "//:MODULE.bazel", - ], - edition = "2021", - env = { - "MODULE_BAZEL": "$(rlocationpath //:MODULE.bazel)", - "VERSION": VERSION, - }, - deps = [ - "//tools/runfiles", - ], + module_bazel = "//:MODULE.bazel", ) diff --git a/test/bzl_version/bzl_version_test.bzl b/test/bzl_version/bzl_version_test.bzl new file mode 100644 index 0000000000..b9a6e43128 --- /dev/null +++ b/test/bzl_version/bzl_version_test.bzl @@ -0,0 +1,30 @@ +"""Test utiltiies for ensuring bzlmod and workspace versions match""" + +load("//:version.bzl", "VERSION") +load("//rust:defs.bzl", "rust_test") + +def bzl_version_test(name, module_bazel, **kwargs): + """A test for ensuring a bzlmod repo is in sync with the core rules_rust version. + + Args: + name (str): The name of the test + module_bazel (label): The label of a `MODULE.bazel` file. + **kwargs (dict): Additional keyword arguments. + """ + + rust_test( + name = name, + srcs = [Label("//test/bzl_version:bzl_version_test.rs")], + data = [ + module_bazel, + ], + edition = "2021", + env = { + "MODULE_BAZEL": "$(rlocationpath {})".format(module_bazel), + "VERSION": VERSION, + }, + deps = [ + Label("//tools/runfiles"), + ], + **kwargs + ) diff --git a/test/deps.bzl b/test/deps.bzl index 53aad9b89e..6f6d1bbb96 100644 --- a/test/deps.bzl +++ b/test/deps.bzl @@ -53,16 +53,6 @@ def rules_rust_test_deps(): target_json = Label("//test/unit/toolchain:toolchain-test-triple.json"), ) - maybe( - http_archive, - name = "com_google_googleapis", - urls = [ - "https://github.com/googleapis/googleapis/archive/18becb1d1426feb7399db144d7beeb3284f1ccb0.zip", - ], - strip_prefix = "googleapis-18becb1d1426feb7399db144d7beeb3284f1ccb0", - sha256 = "b8c487191eb942361af905e40172644eab490190e717c3d09bf83e87f3994fff", - ) - maybe( http_archive, name = "rules_python", diff --git a/test/deps_transitive.bzl b/test/deps_transitive.bzl index 389d959c5b..ff7f2c0fc5 100644 --- a/test/deps_transitive.bzl +++ b/test/deps_transitive.bzl @@ -1,21 +1,6 @@ """Rules rust test dependencies transitive dependencies.""" -load("@com_google_googleapis//:repository_rules.bzl", "switched_rules_by_language") load("@rules_python//python:repositories.bzl", "py_repositories") def rules_rust_test_deps_transitive(): py_repositories() - - switched_rules_by_language( - name = "com_google_googleapis_imports", - cc = False, - csharp = False, - gapic = False, - go = False, - grpc = False, - java = False, - nodejs = False, - php = False, - python = False, - ruby = False, - ) diff --git a/test/test_extensions.bzl b/test/test_extensions.bzl new file mode 100644 index 0000000000..121a49c721 --- /dev/null +++ b/test/test_extensions.bzl @@ -0,0 +1,12 @@ +"""Bzlmod test extensions""" + +load("//test/3rdparty/crates:crates.bzl", test_crate_repositories = "crate_repositories") +load("//tests:test_deps.bzl", "helm_test_deps") + +def _rust_test_impl(_ctx): + helm_test_deps() + test_crate_repositories() + +rust_test = module_extension( + implementation = _rust_test_impl, +)