Skip to main content
Bazel
About Bazel Getting started User guide Reference Extending Community Versions
  • 9.0
  • 8.5
  • 8.4
  • 8.3
  • 8.2
  • 7.7
  • 6.6
  • 5.4.1
  • Nightly
  • More…
/
  • English
  • Español – América Latina
  • Indonesia
  • Português – Brasil
  • Tiếng Việt
  • Türkçe
  • हिंदी
  • ภาษาไทย
  • 中文 – 简体
  • 中文 – 繁體
  • 日本語
  • 한국어
GitHub Sign in
Bazel
  • About Bazel
  • Getting started
  • User guide
  • Reference
  • Extending
  • Community
  • Versions
    • More
  • GitHub
  • 9.0
  • 8.5
  • 8.4
  • 8.3
  • 8.2
  • 7.7
  • 6.6
  • 5.4.1
  • Nightly
  • More…
  • Bazel

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

Configuration fragments give rules access to language-specific parts of configuration.

Rule implementations can get them using ctx.fragments.[fragment name]

  • apple
  • coverage
  • cpp
  • go
  • j2objc
  • java
  • objc
  • platform
  • proto
  • py
  • swift

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.

  • About

    • Who's using Bazel
    • Contribute
    • Governance model
    • Release model
    • Brand guidelines
  • Stay connected

    • Blog
    • GitHub
    • Twitter
    • YouTube
  • Support

    • Support
    • Issue tracker
    • Slack
    • Stack Overflow
  • Terms
  • Privacy
  • Manage cookies
  • English
  • Español – América Latina
  • Indonesia
  • Português – Brasil
  • Tiếng Việt
  • Türkçe
  • हिंदी
  • ภาษาไทย
  • 中文 – 简体
  • 中文 – 繁體
  • 日本語
  • 한국어