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