IMPORTANT: The Bazel docs have moved! Please update your bookmark to

You can read about the migration, and let us know what you think.

Extensions > API reference > Attribute


Representation of a definition of an attribute. Use the attr module to create an Attribute. They are only for use with a rule or an aspect.