run_binary() build rule implementation. Runs a binary as a build action. This rule does not require Bash (unlike native.genrule()). ## run_binary
run_binary(name, args, env, outs, srcs, tool)Runs a binary as a build action. This rule does not require Bash (unlike `native.genrule`). **ATTRIBUTES** | Name | Description | Type | Mandatory | Default | | :------------- | :------------- | :------------- | :------------- | :------------- | | name | A unique name for this target. | Name | required | | | args | Command line arguments of the binary.
$(location)
](https://bazel.build/reference/be/make-variables#predefined_label_variables) expansion. | List of strings | optional | []
|
| env | Environment variables of the action.$(location)
](https://bazel.build/reference/be/make-variables#predefined_label_variables) expansion. | Dictionary: String -> String | optional | {}
|
| outs | Output files generated by the action.$(location)
expansion in args
and env
. | List of labels | required | |
| srcs | Additional inputs of the action.$(location)
expansion in args
and env
. | List of labels | optional | []
|
| tool | The tool to run in the action.$(location)
expansion in args
and env
. | Label | required | |