dep-protobuf/ruby/defs.bzl
Jason Lunn 4e6cf01430 Switch rules_ruby to the supported version from bazel-contrib (#19808)
Closes #19808

COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/19808 from protocolbuffers:rules_ruby 2b8365967d
PiperOrigin-RevId: 734270719
2025-03-06 13:42:11 -08:00

24 lines
758 B
Python

"""Wrapper around internal_ruby_proto_library to supply our rules_ruby"""
load("@rules_ruby//ruby:defs.bzl", "rb_library")
load("//:protobuf.bzl", _internal_ruby_proto_library = "internal_ruby_proto_library")
def internal_ruby_proto_library(
name,
**kwargs):
"""Bazel rule to create a Ruby protobuf library from proto source files
NOTE: the rule is only an internal workaround to generate protos. The
interface may change and the rule may be removed when bazel has introduced
the native rule.
Args:
name: the name of the ruby_proto_library.
**kwargs: other keyword arguments that are passed to rb_library.
"""
_internal_ruby_proto_library(
name,
rb_library,
**kwargs
)