xref: /aosp_15_r20/external/bazelbuild-rules_rust/proto/protobuf/3rdparty/BUILD.bazel (revision d4726bddaa87cc4778e7472feed243fa4b6c267f)
1load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
2load("//crate_universe:defs.bzl", "crate", "crates_vendor")
3
4crates_vendor(
5    name = "crates_vendor",
6    annotations = {
7        "grpc-compiler": [crate.annotation(
8            gen_binaries = ["protoc-gen-rust-grpc"],
9        )],
10        "lazy_static": [crate.annotation(
11            rustc_flags = [
12                "--cfg=lazy_static_heap_impl",
13            ],
14        )],
15        "protobuf": [crate.annotation(
16            patch_args = ["-p1"],
17            patches = ["@rules_rust//proto/protobuf/3rdparty/patches:protobuf-2.8.2.patch"],
18        )],
19        "protobuf-codegen": [crate.annotation(
20            gen_binaries = ["protoc-gen-rust"],
21        )],
22    },
23    cargo_lockfile = "Cargo.Bazel.lock",
24    mode = "remote",
25    packages = {
26        "grpc": crate.spec(
27            version = "0.6.2",
28        ),
29        "grpc-compiler": crate.spec(
30            version = "0.6.2",
31        ),
32        "log": crate.spec(
33            version = "0.4, 0.4.7",
34        ),
35        "protobuf": crate.spec(
36            features = ["with-bytes"],
37            version = "2.8.2",
38        ),
39        "protobuf-codegen": crate.spec(
40            version = "2.8.2",
41        ),
42        "tls-api": crate.spec(
43            version = "0.1.22",
44        ),
45        "tls-api-stub": crate.spec(
46            version = "0.1.22",
47        ),
48    },
49    repository_name = "rules_rust_proto",
50    tags = ["manual"],
51)
52
53bzl_library(
54    name = "bzl_lib",
55    srcs = [
56        "//proto/protobuf/3rdparty/crates:crates.bzl",
57        "//proto/protobuf/3rdparty/crates:defs.bzl",
58    ],
59    visibility = ["//proto/protobuf:__pkg__"],
60)
61