Add license rules

PiperOrigin-RevId: 518370510
pull/12251/head
Protobuf Team Bot 2 years ago committed by Copybara-Service
parent 10327708f8
commit f73c7cb74a
  1. 5
      rust/BUILD
  2. 2
      rust/cpp_kernel/BUILD
  3. 2
      rust/test/BUILD
  4. 2
      rust/test/rust_proto_library_unit_test/BUILD
  5. 2
      rust/upb_kernel/BUILD

@ -5,7 +5,10 @@ load("//third_party/bazel_skylib/rules:common_settings.bzl", "string_flag")
load("@rules_proto//proto:defs.bzl", "proto_lang_toolchain") load("@rules_proto//proto:defs.bzl", "proto_lang_toolchain")
package(default_visibility = ["//src/google/protobuf:__subpackages__"]) package(
default_applicable_licenses = ["//third_party/protobuf:license"],
default_visibility = ["//src/google/protobuf:__subpackages__"],
)
rust_library( rust_library(
name = "protobuf", name = "protobuf",

@ -2,6 +2,8 @@
load("@rules_rust//rust:defs.bzl", "rust_library", "rust_test") load("@rules_rust//rust:defs.bzl", "rust_library", "rust_test")
package(default_applicable_licenses = ["//third_party/protobuf:license"])
rust_library( rust_library(
name = "cpp", name = "cpp",
srcs = ["cpp.rs"], srcs = ["cpp.rs"],

@ -1,6 +1,8 @@
load("//rust:defs.bzl", "rust_proto_library") load("//rust:defs.bzl", "rust_proto_library")
load("@rules_rust//rust:defs.bzl", "rust_test") load("@rules_rust//rust:defs.bzl", "rust_test")
package(default_applicable_licenses = ["//third_party/protobuf:license"])
rust_proto_library( rust_proto_library(
name = "unittest_rust_proto", name = "unittest_rust_proto",
testonly = True, testonly = True,

@ -1,3 +1,5 @@
load(":rust_proto_library_unit_test.bzl", "rust_proto_library_unit_test") load(":rust_proto_library_unit_test.bzl", "rust_proto_library_unit_test")
package(default_applicable_licenses = ["//third_party/protobuf:license"])
rust_proto_library_unit_test(name = "rust_proto_library_unit_test") rust_proto_library_unit_test(name = "rust_proto_library_unit_test")

@ -2,6 +2,8 @@
load("@rules_rust//rust:defs.bzl", "rust_library", "rust_test") load("@rules_rust//rust:defs.bzl", "rust_library", "rust_test")
package(default_applicable_licenses = ["//third_party/protobuf:license"])
rust_library( rust_library(
name = "upb", name = "upb",
srcs = ["upb.rs"], srcs = ["upb.rs"],

Loading…
Cancel
Save