rustfmt_aspect.bzl
rustfmt_aspect
load("@rules_rust//rust:rustfmt_aspect.bzl", "rustfmt_aspect")
rustfmt_aspect()
This aspect is used to gather information about a crate for use in rustfmt and perform rustfmt checks
Output Groups:
rustfmt_checks: Executesrustfmt --checkon the specified target.
The build setting @rules_rust//rust/settings:rustfmt.toml is used to control the Rustfmt configuration settings
used at runtime.
This aspect is executed on any target which provides the CrateInfo provider. However
users may tag a target with no-rustfmt or no-format to have it skipped. Additionally,
generated source files are also ignored by this aspect.
ASPECT ATTRIBUTES
ATTRIBUTES