Extensions > API reference > Target


A BUILD target. It is essentially a struct with the following fields:
  • label

    Label Target.label
    The identifier of the target.
  • files

    depset Target.files
    The set of Files produced directly by this target.
  • aspect_ids

    list Target.aspect_ids
    The list of aspect_ids applied to this target.
  • Extra providers

    For rule targets all additional providers provided by this target are accessible as struct fields. These extra providers are defined in the struct returned by the rule implementation function.