blob: 15c6597c36bb5fb4df51c932c7da37eb7e483bf9 [file]
# Protocol Buffers - Google's data interchange format
# Copyright 2026 Google LLC
#
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file or at
# https://developers.google.com/open-source/licenses/bsd
load("@rules_rust//rust:defs.bzl", "rust_binary")
load("//bazel:proto_library.bzl", "proto_library")
load("//rust:defs.bzl", "rust_proto_library")
package(
default_applicable_licenses = ["//:license"],
default_visibility = ["//rust/test/treeshaking:__pkg__"],
)
proto_library(
name = "treeshaking_proto",
testonly = True,
srcs = ["treeshaking.proto"],
)
rust_proto_library(
name = "treeshaking_rust_proto",
testonly = True,
deps = [":treeshaking_proto"],
)
rust_binary(
name = "treeshaking_app",
testonly = True,
srcs = ["main.rs"],
deps = [":treeshaking_rust_proto"],
)