xref: /aosp_15_r20/external/bazelbuild-rules_rust/test/proto/BUILD.bazel (revision d4726bddaa87cc4778e7472feed243fa4b6c267f)
1*d4726bddSHONG Yifanload("@rules_proto//proto:defs.bzl", "proto_library")
2*d4726bddSHONG Yifanload("@rules_rust//proto/protobuf:defs.bzl", "rust_proto_library")
3*d4726bddSHONG Yifan
4*d4726bddSHONG Yifanproto_library(
5*d4726bddSHONG Yifan    name = "a_proto",
6*d4726bddSHONG Yifan    srcs = ["a.proto"],
7*d4726bddSHONG Yifan    strip_import_prefix = "",
8*d4726bddSHONG Yifan)
9*d4726bddSHONG Yifan
10*d4726bddSHONG Yifanproto_library(
11*d4726bddSHONG Yifan    name = "b_proto",
12*d4726bddSHONG Yifan    srcs = ["b.proto"],
13*d4726bddSHONG Yifan    strip_import_prefix = "",
14*d4726bddSHONG Yifan    deps = [":a_proto"],
15*d4726bddSHONG Yifan)
16*d4726bddSHONG Yifan
17*d4726bddSHONG Yifanrust_proto_library(
18*d4726bddSHONG Yifan    name = "b_rust",
19*d4726bddSHONG Yifan    # In Rust nightly (2023-04-20), this target fails due to the following issue:
20*d4726bddSHONG Yifan    # https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lint/builtin/static.AMBIGUOUS_GLOB_REEXPORTS.html
21*d4726bddSHONG Yifan    tags = ["no-clippy"],
22*d4726bddSHONG Yifan    deps = [":b_proto"],
23*d4726bddSHONG Yifan)
24