mirror of
https://github.com/protocolbuffers/protobuf
synced 2026-08-26 02:23:14 -04:00
Closes #19808
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/19808 from protocolbuffers:rules_ruby 2b8365967d
PiperOrigin-RevId: 734270719
24 lines
758 B
Python
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
|
|
)
|