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