`native.genrule()` is sometimes used to copy files (often wishing to rename them). The 'copy_file' rule does this with a simpler interface than genrule.
This rule uses a Bash command on Linux/macOS/non-Windows, and a cmd.exe command on Windows (no Bash is required).
### Parameters
<tableclass="params-table">
<colgroup>
<colclass="col-param"/>
<colclass="col-description"/>
</colgroup>
<tbody>
<trid="copy_file-name">
<td><code>name</code></td>
<td>
required.
<p>
Name of the rule.
</p>
</td>
</tr>
<trid="copy_file-src">
<td><code>src</code></td>
<td>
required.
<p>
A Label. The file to make a copy of. (Can also be the label of a rule
that generates a file.)
</p>
</td>
</tr>
<trid="copy_file-out">
<td><code>out</code></td>
<td>
required.
<p>
Path of the output file, relative to this package.
</p>
</td>
</tr>
<trid="copy_file-is_executable">
<td><code>is_executable</code></td>
<td>
optional. default is <code>False</code>
<p>
A boolean. Whether to make the output file executable. When
True, the rule's output can be executed using `bazel run` and can be
in the srcs of binary and test rules that require executable sources.