load("//rust:defs.bzl", "rust_proto_library") load("@rules_rust//rust:defs.bzl", "rust_test") rust_proto_library( name = "unittest_rs_proto", testonly = True, deps = ["//third_party/protobuf:unittest_proto"], ) rust_test( name = "unittest_proto_test", srcs = ["unittest_proto_test.rs"], # TODO(b/270274576): Enable testing on arm once we have a Rust Arm toolchain. tags = [ "not_build:arm", "notsan", ], deps = [":unittest_rs_proto"], ) proto_library( name = "parent_proto", srcs = ["parent.proto"], ) proto_library( name = "child_proto", srcs = ["child.proto"], exports = [":parent_proto"], deps = [":parent_proto"], ) rust_proto_library( name = "parent_rs_proto", deps = [":parent_proto"], ) rust_proto_library( name = "child_rs_proto", deps = [":child_proto"], ) rust_test( name = "child_parent_test", srcs = ["child_parent_test.rs"], # TODO(b/270274576): Enable testing on arm once we have a Rust Arm toolchain. tags = [ "not_build:arm", "notsan", ], deps = [ ":child_rs_proto", ":parent_rs_proto", ], )