1# buildifier: disable=module-docstring 2load(":dep.bzl", "my_rule_impl") 3 4my_rule = rule( 5 implementation = my_rule_impl, 6 doc = "This is my rule. It does stuff.", 7 attrs = { 8 "first": attr.label( 9 mandatory = True, 10 doc = "first my_rule doc string", 11 allow_single_file = True, 12 ), 13 "second": attr.string_dict(mandatory = True), 14 }, 15) 16