diff --git a/WORKSPACE b/WORKSPACE index 45b69d54..af3356d6 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -83,6 +83,19 @@ load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") protobuf_deps() +http_archive( + name = "rules_proto", + sha256 = "dc3fb206a2cb3441b485eb1e423165b231235a1ea9b031b4433cf7bc1fa460dd", + strip_prefix = "rules_proto-5.3.0-21.7", + url = "https://github.com/bazelbuild/rules_proto/archive/refs/tags/5.3.0-21.7.tar.gz", +) + +load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains") + +rules_proto_dependencies() +rules_proto_toolchains() + + ############################################################################### # Minor third_party dependencies ############################################################################### diff --git a/proto/BUILD b/proto/BUILD index 2b97d0e1..519eb547 100644 --- a/proto/BUILD +++ b/proto/BUILD @@ -16,6 +16,7 @@ # All SiliFuzz ptotocol messages are to live here. # Exceptions are example or for-test protos with very local usage scope. +load("@rules_python//python:proto.bzl", "py_proto_library") load("@rules_cc//cc:defs.bzl", "cc_proto_library") package(default_visibility = ["//visibility:public"]) @@ -34,6 +35,11 @@ cc_proto_library( deps = [":snapshot"], ) +py_proto_library( + name = "snapshot_py_proto", + deps = [":snapshot"], +) + proto_library( name = "player_result", srcs = ["player_result.proto"], @@ -48,6 +54,11 @@ cc_proto_library( deps = [":player_result"], ) +py_proto_library( + name = "player_result_py_proto", + deps = [":player_result"], +) + proto_library( name = "corpus_metadata_proto", srcs = ["corpus_metadata.proto"], @@ -86,6 +97,11 @@ cc_proto_library( deps = [":snapshot_execution_result_proto"], ) +py_proto_library( + name = "snapshot_execution_result_py_proto", + deps = [":snapshot_execution_result_proto"], +) + proto_library( name = "binary_log_entry_proto", srcs = ["binary_log_entry.proto"], @@ -101,3 +117,8 @@ cc_proto_library( name = "binary_log_entry_cc_proto", deps = [":binary_log_entry_proto"], ) + +py_proto_library( + name = "binary_log_entry_py_pb2", + deps = [":binary_log_entry_proto"], +) diff --git a/runner/BUILD b/runner/BUILD index a2b0167a..5ecd681d 100644 --- a/runner/BUILD +++ b/runner/BUILD @@ -446,7 +446,6 @@ nosan_filegroup( srcs = [ ":reading_runner_main_nolibc", ], - visibility = ["//visibility:private"], ) # A single library for obtaining all runner binaries that can be depended on