Skip to main content
Bazel
About Bazel Getting started User guide Reference Extending Community Versions
  • 9.1.0
  • 9.0.0
  • 8.7.0
  • 8.6
  • 8.5
  • 8.4
  • 8.3
  • 8.2
  • 7.7
  • 6.6
  • Nightly
  • More…
/
  • English
  • Deutsch
  • Español
  • Español – América Latina
  • Français
  • Indonesia
  • Italiano
  • Polski
  • Português
  • Português – Brasil
  • Tiếng Việt
  • Türkçe
  • Русский
  • עברית
  • العربيّة
  • فارسی
  • हिंदी
  • বাংলা
  • ภาษาไทย
  • 中文 – 简体
  • 中文 – 繁體
  • 日本語
  • 한국어
GitHub
Bazel
  • About Bazel
  • Getting started
  • User guide
  • Reference
  • Extending
  • Community
  • Versions
    • More
  • GitHub
  • 9.1.0
  • 9.0.0
  • 8.7.0
  • 8.6
  • 8.5
  • 8.4
  • 8.3
  • 8.2
  • 7.7
  • 6.6
  • Nightly
  • More…
The Build Foundation started enrolling founding members! Join the mailing list, read the participation agreement, and enroll!
  • Bazel

Attribute Stay organized with collections Save and categorize content based on your preferences.

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.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-01-22 UTC.

  • Stay connected

    • Blog
    • GitHub
  • Support

    • Support
    • Issue tracker
    • Slack
    • Stack Overflow
  • Terms
  • Privacy
  • Manage cookies
  • English
  • Deutsch
  • Español
  • Español – América Latina
  • Français
  • Indonesia
  • Italiano
  • Polski
  • Português
  • Português – Brasil
  • Tiếng Việt
  • Türkçe
  • Русский
  • עברית
  • العربيّة
  • فارسی
  • हिंदी
  • বাংলা
  • ภาษาไทย
  • 中文 – 简体
  • 中文 – 繁體
  • 日本語
  • 한국어