1:::{default-domain} bzl 2::: 3 4:::{bzl:currentfile} //lang:rule.bzl 5::: 6 7 8# Rule 9 10Here is some module documentation 11 12Next, we're going to document some rules. 13 14::::{bzl:rule} my_rule(ra1, ra2=3) 15 16:attr ra1: 17 {bzl:default-value}`//foo:bar` 18 {type}`attr.label` 19 Docs for attribute ra1. 20 21 :::{bzl:attr-info} Info 22 :executable: true 23 :mandatory: true 24 ::: 25 26 {required-providers}`"Display <//lang:provider.bzl%LangInfo>"` 27 28:attr ra2: 29 {type}`attr.label` 30 Docs for attribute ra2 31 32:provides: LangInfo 33 34:::: 35