Sort buck genrule args the way buildifier wants

https://github.com/bazelbuild/buildtools/tree/master/buildifier
This commit is contained in:
David Tolnay 2020-09-01 16:07:52 -07:00
parent f48e97e55a
commit 7273963a61
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
2 changed files with 5 additions and 5 deletions

View File

@ -20,17 +20,17 @@ cxx_library(
genrule(
name = "gen-header",
srcs = ["src/main.rs"],
out = "generated.h",
cmd = "$(exe //:codegen) --header ${SRCS} > ${OUT}",
type = "cxxbridge",
out = "generated.h",
)
genrule(
name = "gen-source",
srcs = ["src/main.rs"],
out = "generated.cc",
cmd = "$(exe //:codegen) ${SRCS} > ${OUT}",
type = "cxxbridge",
out = "generated.cc",
)
cxx_library(

View File

@ -34,20 +34,20 @@ cxx_library(
genrule(
name = "gen-lib-header",
srcs = ["ffi/lib.rs"],
cmd = "$(exe //:codegen) --header ${SRCS} > ${OUT}",
out = "lib.rs.h",
cmd = "$(exe //:codegen) --header ${SRCS} > ${OUT}",
)
genrule(
name = "gen-lib-source",
srcs = ["ffi/lib.rs"],
cmd = "$(exe //:codegen) ${SRCS} > ${OUT}",
out = "lib.rs.cc",
cmd = "$(exe //:codegen) ${SRCS} > ${OUT}",
)
genrule(
name = "gen-module-source",
srcs = ["ffi/module.rs"],
cmd = "$(exe //:codegen) ${SRCS} > ${OUT}",
out = "module.rs.cc",
cmd = "$(exe //:codegen) ${SRCS} > ${OUT}",
)