<a name="common.data"></a>
<p>List of <a href="${link build-ref#labels}">labels</a>; default is <code>[]</code></p>

<p>
Files needed by this rule at runtime. May list file or rule targets. Generally
allows any target.
</p>

<p>
The <code>runfiles</code> of targets in the <code>data</code> attribute
appear in the <code>*.runfiles</code> area of any executable which is
output by or has a runtime dependency on this target. This may include data
files or binaries used when this target's
<a href="#typical.srcs"><code>srcs</code></a> are executed. Typically,
this includes the targets' default outputs and their transitive runfiles,
but this depends on the implementation of the rules for those targets;
most rules include their default outputs in their <code>runfiles</code>.
See the <a href="${link build-ref#data}">data dependencies</a>
section for more information about how to depend on and use data files.
</p>

<p>
New rules should define a <code>data</code> attribute if they process
inputs which might use other inputs at runtime. Rules' implementation functions
must also <a href="https://bazel.build/rules/rules#runfiles">populate the target's
runfiles</a> from the outputs and runfiles of any <code>data</code> attribute,
as well as runfiles from any dependency attribute which provides either
source code or runtime dependencies.
</p>
