• GitHub
  • Getting Started
  • Using Bazel
  • Extending Bazel
  • Contributing
  • Blog
Navigation

Guides

  • Running Bazel
  • Optimizing Memory
  • Building on Windows
  • Best practices
  • Sharing BUILD Variables

Query for Dependencies

  • Query Quickstart
  • Query Reference
  • Query Configured Targets Reference
  • Query Action Graph Reference

Remote execution

  • Overview
  • Guidelines
  • Troubleshooting
    • Troubleshooting with Bazel Sandbox
    • Non-Hermetic WORKSPACE Rules
    • Debugging Remote Cache Hits
  • Remote Execution and CI
  • Dynamic Execution
  • Remote caching
    • Overview
    • Debugging

Reference

  • Commands and Options
  • Build Encyclopedia
  • Test Encyclopedia
  • Command Line Reference
  • BUILD Files
    • Functions
    • Common Rule Definitions
    • "Make" Variables
    • BUILD Style Guide
  • Build Event Protocol
    • Overview
    • BEP examples
    • BEP glossary
  • Output Directory Layout
  • Platforms
  • Execution Groups
  • Toolchains
IMPORTANT: The Bazel docs have moved! Please update your bookmark to https://bazel.build/rules/lib/starlark-builtin

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

Built-in Types

This section lists types of Starlark objects.
  • 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
  • Create issue

About

  • Who's Using Bazel?
  • Roadmap
  • Contribute
  • Governance Plan
  • Privacy Policy
  • Sitemap

Support

  • Stack Overflow
  • Issue Tracker
  • Documentation
  • FAQ
  • Support Policy

Stay Connected

  • Twitter
  • Blog
  • GitHub
  • Discussion group
  • Slack

© 2023 Google