load("@rules_proto//proto:defs.bzl", "proto_library") | |
load("@rules_rust//proto/protobuf:defs.bzl", "rust_proto_library") | |
proto_library( | |
name = "a_proto", | |
srcs = ["a.proto"], | |
strip_import_prefix = "", | |
) | |
proto_library( | |
name = "b_proto", | |
srcs = ["b.proto"], | |
strip_import_prefix = "", | |
deps = [":a_proto"], | |
) | |
rust_proto_library( | |
name = "b_rust", | |
# In Rust nightly (2023-04-20), this target fails due to the following issue: | |
# https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lint/builtin/static.AMBIGUOUS_GLOB_REEXPORTS.html | |
tags = ["no-clippy"], | |
deps = [":b_proto"], | |
) |