Skip to main content

core

RuleDescription
aliasAn alias() gives another name to a target.
build_variantsA build_variants() rule lists the named ways of building one target: for each variant, the target platform to build for, and the buckconfigs, modefiles and modifiers to build with.
command_aliasThe command_alias rule enables you to wrap build rules that create binaries and to pre-apply command-line arguments and environment variables.
config_settingconfig_setting() accepts a list of constraint_values and a list of values (buckconfig keys + expected values) and matches if all of those match.
configuration_aliasconfiguration_alias() acts like alias() but for configuration targets.
configured_aliasA configured_alias() is an alias for a target as it is built for one platform.
constraintUnified constraint rule that defines both a constraint setting and its possible values.
constraint_settingDeprecated: use constraint() instead.
constraint_valueDeprecated: use constraint() instead.
exec_platform_marker_constraintSpecial constraint rule for defining execution platform markers.
export_fileAn export_file() takes a single file or folder and exposes it so other rules can use it.
extract_archiveExtracts an archive into a directory.
filegroupThis rule provides access to a set of files.
genruleA genrule() is used to generate files from a shell command.
http_archiveAn http_archive() rule is used to download and extract archives from the Internet to be used as dependencies for other rules.
http_fileAn http_file() rule is used to download files from the Internet to be used as dependencies for other rules.
platformDeclares a platform, which is a build configuration composed of constraint values.
remote_fileA remote_file() rule is used to download files from the Internet to be used as dependencies for other rules.
test_suiteA test_suite() is used to create a grouping of tests that should all be run by just testing this rule.
toolchain_aliastoolchain_alias acts like alias but for toolchain rules.
versioned_alias
worker_toolSome external tools have high startup costs.
write_fileWrites a text file from lines given in the build file.
zip_fileA zip_file() allows builds to create basic zip files in a platform-agnostic way.