style(bazel): use template suffix for Rust BUILD template
This commit is contained in:
2
MODULE.bazel.lock
generated
2
MODULE.bazel.lock
generated
@@ -93,7 +93,7 @@
|
|||||||
"moduleExtensions": {
|
"moduleExtensions": {
|
||||||
"//bazel:rust.bzl%rust": {
|
"//bazel:rust.bzl%rust": {
|
||||||
"general": {
|
"general": {
|
||||||
"bzlTransitiveDigest": "4aaA6vAtrGES73j6RWZFmf/31/0PAazCSNi2ccK0w0E=",
|
"bzlTransitiveDigest": "4kUzQyjRjzchWIBZJKkNs8LuO4F+g/DwuwtTa0RTPcU=",
|
||||||
"usagesDigest": "jJoM2Hp1NbshT//puE4xIUfXdA0K6BRx1WTlsZIKFm4=",
|
"usagesDigest": "jJoM2Hp1NbshT//puE4xIUfXdA0K6BRx1WTlsZIKFm4=",
|
||||||
"recordedFileInputs": {},
|
"recordedFileInputs": {},
|
||||||
"recordedDirentsInputs": {},
|
"recordedDirentsInputs": {},
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
exports_files([
|
exports_files([
|
||||||
"rust.BUILD.tpl",
|
"rust.BUILD.template",
|
||||||
"rust.bzl",
|
"rust.bzl",
|
||||||
"utils.bzl",
|
"utils.bzl",
|
||||||
])
|
])
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ def _rust_repository_impl(repository_ctx):
|
|||||||
repository_ctx.file("WORKSPACE.bazel", "")
|
repository_ctx.file("WORKSPACE.bazel", "")
|
||||||
repository_ctx.template(
|
repository_ctx.template(
|
||||||
"BUILD.bazel",
|
"BUILD.bazel",
|
||||||
Label("//bazel:rust.BUILD.tpl"),
|
Label("//bazel:rust.BUILD.template"),
|
||||||
{
|
{
|
||||||
"{host_triple}": host_triple,
|
"{host_triple}": host_triple,
|
||||||
"{release}": release,
|
"{release}": release,
|
||||||
|
|||||||
Reference in New Issue
Block a user