rustfmt_toolchain.bzl
rustfmt_toolchain
load("@rules_rust//rust:rustfmt_toolchain.bzl", "rustfmt_toolchain")
rustfmt_toolchain(name, rustc, rustc_lib, rustfmt)
A toolchain for rustfmt
ATTRIBUTES
| Name | Description | Type | Mandatory | Default |
|---|---|---|---|---|
| name | A unique name for this target. | Name | required | |
| rustc | The location of the rustc binary. Can be a direct source or a filegroup containing one item. | Label | optional | None |
| rustc_lib | The libraries used by rustc during compilation. | Label | optional | None |
| rustfmt | The location of the rustfmt binary. Can be a direct source or a filegroup containing one item. | Label | required |