IMPORTANT: The Bazel docs have moved! Please update your bookmark to https://bazel.build/rules/lib/Attribute

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

Extensions > API reference > Attribute

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.