• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1"""A direct dependency file of the input file."""
2
3load(":testdata/multiple_files_test/dep.bzl", "my_rule_impl", "some_cool_function")
4
5my_rule = rule(
6    implementation = my_rule_impl,
7    doc = "This is my rule. It does stuff.",
8    attrs = {
9        "first": attr.label(
10            mandatory = True,
11            doc = "first my_rule doc string",
12            allow_single_file = True,
13        ),
14        "second": attr.string_dict(mandatory = True),
15    },
16)
17
18def top_fun(a, b, c):
19    some_cool_function(a, b, c)
20    return 6
21
22other_rule = rule(
23    implementation = my_rule_impl,
24    doc = "This is another rule.",
25    attrs = {
26        "third": attr.label(
27            mandatory = True,
28            doc = "third other_rule doc string",
29            allow_single_file = True,
30        ),
31        "fourth": attr.string_dict(mandatory = True),
32    },
33)
34
35yet_another_rule = rule(
36    implementation = my_rule_impl,
37    doc = "This is yet another rule",
38    attrs = {
39        "fifth": attr.label(mandatory = True, allow_single_file = True),
40    },
41)
42