forked from mirrors/jj
d4cce209d8
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>
23 lines
495 B
Text
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
|
|
]
|