Explicitly convert an enum to an int (#19537)
[google-protobuf.git] / ruby / defs.bzl
blob7f60b47f5cdd086529af52fcd970fd6489963a8c
1 """Wrapper around internal_ruby_proto_library to supply our rules_ruby"""
3 load("@rules_ruby//ruby:defs.bzl", "ruby_library")
4 load("//:protobuf.bzl", _internal_ruby_proto_library = "internal_ruby_proto_library")
6 def internal_ruby_proto_library(
7         name,
8         **kwargs):
9     """Bazel rule to create a Ruby protobuf library from proto source files
11     NOTE: the rule is only an internal workaround to generate protos. The
12     interface may change and the rule may be removed when bazel has introduced
13     the native rule.
15     Args:
16       name: the name of the ruby_proto_library.
17       **kwargs: other keyword arguments that are passed to ruby_library.
19     """
20     _internal_ruby_proto_library(
21         name,
22         ruby_library,
23         **kwargs
24     )