1load("@rules_proto//proto:defs.bzl", "proto_library")
2load("@upb//bazel:upb_proto_library.bzl", "upb_proto_library")
3
4licenses(["notice"])
5
6proto_library(
7    name = "foo_proto",
8    srcs = ["foo.proto"],
9)
10
11upb_proto_library(
12    name = "foo_upbproto",
13    deps = [":foo_proto"],
14)
15
16cc_binary(
17    name = "test_binary",
18    srcs = ["test_binary.c"],
19    copts = ["-std=c99"],
20    deps = [":foo_upbproto"],
21)
22