blob: 5c2e0575c30e9a7d88d90ce490124ae2ee92d19d [file]
---
title: 'rule'
---
A callable value representing the type of a native or Starlark rule (created by
[`rule()`](../globals/bzl#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. For more information, visit this page about
[Rules](https://bazel.build/versions/9.3.2/extending/rules).