Back to Bazel

Rule

docs/versions/6.5.0/rules/lib/rule.mdx

9.1.0468 B
Original Source
<html devsite> <head> <meta name="project_path" value="/_project.yaml"> <meta name="book_path" value="/versions/6.5.0/_book.yaml"> </head> <body> <h1 class="page-title" id="modules.rule">rule</h1> <!-- {% raw %} -->

A callable value representing the type of a native or Starlark rule. Calling the value during evaluation of a package's BUILD file creates an instance of the rule and adds it to the package's target set.

</body> </html> <!-- {% endraw %} -->