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

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

Configuration Fragments

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

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