ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/cli/examples/BUILD
Austin Seipp d4cce209d8 cli: add BUILD files
The `grammar` macro from `pest_derive` doesn't actually interpret the given file
as relative in our case, so we have to give it the fully qualified relative path
which exists in the `buck-out/` dir.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
2024-09-04 14:30:01 -05:00

23 lines
495 B
Text

load("//buck/shims/jj.bzl", "jj")
load("//cli/BUILD.deps.bzl", "JJ_CLI_DEPS")
EXAMPLES = [
'custom-backend',
'custom-command',
'custom-commit-templater',
'custom-global-flag',
'custom-operation-templater',
'custom-working-copy',
]
[
jj.rust_binary(
name = name,
srcs = glob(["{}/**/*.rs".format(name)]),
deps = [
"//cli:jj-cli",
"third-party//rust:async-trait",
] + JJ_CLI_DEPS,
) for name in EXAMPLES
]