IMPORTANT: The Bazel docs have moved! Please update your bookmark to https://bazel.build/rules/lib/starlark-overview
You can read about the migration, and let us know what you think.
One-Page Overview
A list of all modules and globals that are available:Global Functions
- all
- analysis_test_transition
- any
- archive_override
- aspect
- bazel_dep
- bind
- bool
- configuration_field
- depset
- dict
- dir
- enumerate
- exec_group
- fail
- float
- getattr
- git_override
- hasattr
- hash
- int
- len
- list
- local_path_override
- max
- min
- module
- module_extension
- multiple_version_override
- provider
- range
- register_execution_platforms
- register_toolchains
- repository_rule(implementation, attrs, local, environ, configure, remotable, doc)
- repository_rule(implementation, attrs, local, environ, configure, remotable, doc)
- repr
- reversed
- rule
- select
- single_version_override
- sorted
- str
- tag_class
- tuple
- type
- use_extension
- use_repo
- workspace
- zip
Global Constants
Global Modules
Configuration Fragments
Providers
- AppleDebugOutputs
- AppleDylibBinary
- AppleDynamicFramework
- AppleExecutableBinary
- AppleLoadableBundleBinary
- AppleStaticLibrary
- CcInfo
- CcStarlarkApiProvider
- CcToolchainConfigInfo
- CcToolchainInfo
- CompilationContext
- ConstraintCollection
- ConstraintSettingInfo
- ConstraintValueInfo
- DebugPackageInfo
- DefaultInfo
- FeatureFlagInfo
- file_provider
- FilesToRunProvider
- GeneratedExtensionRegistryProvider
- IncompatiblePlatformProvider
- InstrumentedFilesInfo
- java_compilation_info
- java_output_jars
- JavaInfo
- JavaPluginData
- JavaPluginInfo
- JavaRuntimeInfo
- JavaToolchainInfo
- ObjcProvider
- OutputGroupInfo
- PlatformInfo
- ProguardSpecProvider
- ProtoInfo
- ProtoRegistryProvider
- PyInfo
- PyRuntimeInfo
- TemplateVariableInfo
- ToolchainInfo
- ToolchainTypeInfo
- XcodeProperties
- XcodeVersionConfig
Built-in Types
- Action
- actions
- apple_bitcode_mode
- apple_platform
- apple_platform_type
- Args
- Aspect
- Attribute
- BuildSetting
- CcCompilationOutputs
- CcLinkingOutputs
- config
- configuration
- ctx
- depset
- DirectoryExpander
- DottedVersion
- exec_result
- ExecGroupCollection
- ExecGroupContext
- ExecTransitionFactory
- FeatureConfiguration
- File
- fragments
- java_annotation_processing
- java_output
- Label
- LateBoundDefault
- LibraryToLink
- License
- LinkerInput
- LinkingContext
- module_ctx
- native
- native_rule_transition
- path
- ProtoModule
- Provider
- repository_ctx
- repository_os
- repository_rule
- root
- rule
- rule_attributes
- runfiles
- struct
- SymlinkEntry
- Target
- ToolchainContext
- transition