############################################################################### # @generated # This file is auto-generated by the cargo-bazel tool. # # DO NOT MODIFY: Local changes may be replaced in future executions. ############################################################################### """Rules for defining repositories for remote `crates_vendor` repositories""" load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") # buildifier: disable=bzl-visibility load("@proxy_wasm_rust_sdk//bazel/cargo/remote:defs.bzl", _crate_repositories = "crate_repositories") # buildifier: disable=bzl-visibility load("@rules_rust//crate_universe/private:crates_vendor.bzl", "crates_vendor_remote_repository") def crate_repositories(): """Generates repositories for vendored crates. Returns: A list of repos visible to the module through the module extension. """ maybe( crates_vendor_remote_repository, name = "crates_vendor", build_file = Label("@proxy_wasm_rust_sdk//bazel/cargo/remote:BUILD.bazel"), defs_module = Label("@proxy_wasm_rust_sdk//bazel/cargo/remote:defs.bzl"), ) direct_deps = [struct(repo = "crates_vendor", is_dev_dep = False)] direct_deps.extend(_crate_repositories()) return direct_deps