blob: cf5a4a3c51a498a7d462f71cacec0c7f48e0ca80 [file] [log] [blame]
def my_rule_impl(ctx):
return struct()
my_rule = rule(
implementation = my_rule_impl,
doc = "This is my rule. It does stuff.",
attrs = {
"first": attr.label(mandatory = True, allow_files = True, single_file = True),
"second": attr.string_dict(mandatory = True),
},
)
other_rule = rule(
implementation = my_rule_impl,
doc = "This is another rule.",
attrs = {
"third": attr.label(mandatory = True, allow_files = True, single_file = True),
"_hidden": attr.string(),
"fourth": attr.string_dict(mandatory = True),
},
)
yet_another_rule = rule(
implementation = my_rule_impl,
doc = "This is yet another rule",
attrs = {
"_hidden": attr.string(),
"fifth": attr.label(mandatory = True, allow_files = True, single_file = True),
},
)