> ## Documentation Index
> Fetch the complete documentation index at: https://bazel-pr-30827.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Bazel BUILD Encyclopedia of Functions

## Concepts and terminology

* [Common definitions](/reference/be/common-definitions)
  * [Bourne shell tokenization](/reference/be/common-definitions#sh-tokenization)
  * [Label expansion](/reference/be/common-definitions#label-expansion)
  * [Typical attributes for most rules](/reference/be/common-definitions#typical-attributes)
  * [Common attributes for all rules](/reference/be/common-definitions#common-attributes)
  * [Common attributes for tests](/reference/be/common-definitions#common-attributes-tests)
  * [Common attributes for binaries](/reference/be/common-definitions#common-attributes-binaries)
  * [Configurable attributes](/reference/be/common-definitions#configurable-attributes)
  * [Implicit output targets](/reference/be/common-definitions#implicit-outputs)
* ["Make" variables](/reference/be/make-variables)
  * [Use](/reference/be/make-variables#use)

## Functions

* [package](/reference/be/functions#package)
* [package\_group](/reference/be/functions#package_group)
* [exports\_files](/reference/be/functions#exports_files)
* [glob](/reference/be/functions#glob)
* [select](/reference/be/functions#select)
* [workspace](/rules/lib/globals/workspace#workspace)

## Rules

Native rules ship with the Bazel binary and do not require a `load` statement.
Native rules are available globally in BUILD files. In .bzl files, you can find them in
the `native` module.
For non-native Starlark rules that ship separately from Bazel, see the list of
[recommended rules](/rules/rules#recommended-rules).

### Language-specific native rules

| Language        | Flags | Binary rules                     | Library rules                                                                                                                                                                                                                                                                                          | Test rules                   | Other rules                                                                                                                                                                                                              |
| --------------- | ----- | -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| C / C++         |       | [cc\_binary](c-cpp#cc_binary)    | [cc\_import](c-cpp#cc_import)   [cc\_library](c-cpp#cc_library)   [cc\_shared\_library](c-cpp#cc_shared_library)   [cc\_static\_library](c-cpp#cc_static_library)                                                                                                                                      | [cc\_test](c-cpp#cc_test)    | [cc\_toolchain](c-cpp#cc_toolchain)   [fdo\_prefetch\_hints](c-cpp#fdo_prefetch_hints)   [fdo\_profile](c-cpp#fdo_profile)   [memprof\_profile](c-cpp#memprof_profile)   [propeller\_optimize](c-cpp#propeller_optimize) |
| Java            |       | [java\_binary](java#java_binary) | [java\_import](java#java_import)   [java\_library](java#java_library)                                                                                                                                                                                                                                  | [java\_test](java#java_test) | [java\_package\_configuration](java#java_package_configuration)   [java\_plugin](java#java_plugin)   [java\_runtime](java#java_runtime)   [java\_toolchain](java#java_toolchain)                                         |
| Objective-C     |       |                                  | [objc\_import](objective-c#objc_import)   [objc\_library](objective-c#objc_library)                                                                                                                                                                                                                    |                              |                                                                                                                                                                                                                          |
| Protocol Buffer |       |                                  | [cc\_proto\_library](protocol-buffer#cc_proto_library)   [java\_lite\_proto\_library](protocol-buffer#java_lite_proto_library)   [java\_proto\_library](protocol-buffer#java_proto_library)   [proto\_library](protocol-buffer#proto_library)   [py\_proto\_library](protocol-buffer#py_proto_library) |                              | [proto\_lang\_toolchain](protocol-buffer#proto_lang_toolchain)   [proto\_toolchain](protocol-buffer#proto_toolchain)                                                                                                     |
| Python          |       | [py\_binary](python#py_binary)   | [py\_library](python#py_library)                                                                                                                                                                                                                                                                       | [py\_test](python#py_test)   | [py\_runtime](python#py_runtime)                                                                                                                                                                                         |
| Shell           |       | [sh\_binary](shell#sh_binary)    | [sh\_library](shell#sh_library)                                                                                                                                                                                                                                                                        | [sh\_test](shell#sh_test)    |                                                                                                                                                                                                                          |

### Language-agnostic native rules

| Family                   | Rules                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Extra Actions            | <ul class="hlist"> <li> <a href="extra-actions.html#action_listener">action\_listener</a> <li> <a href="extra-actions.html#extra_action">extra\_action</a> </li></li></ul>                                                                                                                                                                                                                                                                                      |
| General                  | <ul class="hlist"> <li> <a href="general.html#alias">alias</a> <li> <a href="general.html#config_setting">config\_setting</a> <li> <a href="general.html#filegroup">filegroup</a> <li> <a href="general.html#genquery">genquery</a> <li> <a href="general.html#genrule">genrule</a> <li> <a href="general.html#starlark_doc_extract">starlark\_doc\_extract</a> <li> <a href="general.html#test_suite">test\_suite</a> </li></li></li></li></li></li></li></ul> |
| Platforms and Toolchains | <ul class="hlist"> <li> <a href="platforms-and-toolchains.html#constraint_setting">constraint\_setting</a> <li> <a href="platforms-and-toolchains.html#constraint_value">constraint\_value</a> <li> <a href="platforms-and-toolchains.html#platform">platform</a> <li> <a href="platforms-and-toolchains.html#toolchain">toolchain</a> <li> <a href="platforms-and-toolchains.html#toolchain_type">toolchain\_type</a> </li></li></li></li></li></ul>           |
