Skip to content

Commit

Permalink
proc-macros: add BUCK files
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Seipp <[email protected]>
  • Loading branch information
thoughtpolice committed Jun 25, 2024
1 parent b02838a commit 9d4a6fc
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
3 changes: 2 additions & 1 deletion BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
alias(name = name, actual = actual)
for (name, actual) in [
# (top-level name, fully-qualified target name)
("gen-protos", "//lib/gen-protos:gen-protos"),
("gen-protos", "//lib/gen-protos:gen-protos"),
("proc-macros", "//lib/proc-macros:proc-macros"),
]
]
22 changes: 22 additions & 0 deletions lib/proc-macros/BUCK
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

load("//buck/shims/jj.bzl", "jj")

alias(
# NOTE: default target for this package
name = 'proc-macros',
actual = ':jj-lib-proc-macros',
)

jj.rust_library(
name = 'jj-lib-proc-macros',
srcs = glob(["src/**/*.rs"]),
proc_macro = True,
deps = [
# CARGO-SYNC-START: dependencies
'third-party//rust:proc-macro2',
'third-party//rust:quote',
'third-party//rust:syn',
# CARGO-SYNC-END
],
visibility = ['PUBLIC'], # XXX FIXME (aseipp): why is this needed?
)

0 comments on commit 9d4a6fc

Please sign in to comment.