blob: 937f7daac645eab0e7583125cabf5afb9a261b64 [file] [log] [blame]
def exercise_the_api():
var1 = cc_common.CcToolchainInfo
exercise_the_api()
def my_rule_impl(ctx):
return struct()
cpp_related_rule = rule(
implementation = my_rule_impl,
doc = "This rule does cpp-related things.",
attrs = {
"first": attr.label(mandatory = True, allow_single_file = True),
"second": attr.string_dict(mandatory = True),
"third": attr.output(mandatory = True),
"fourth": attr.bool(default = False, mandatory = False),
},
)