Skip to content

Commit

Permalink
proc-macros: add BUCK files
Browse files Browse the repository at this point in the history
  • Loading branch information
thoughtpolice committed May 15, 2024
1 parent f88b49b commit a05ec2b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
alias(name = name, actual = actual)
for (name, actual) in [
# (top-level name, fully-qualified target name)
("proc-macros", "//lib/proc-macros:proc-macros"),
]
]
21 changes: 21 additions & 0 deletions lib/proc-macros/BUCK
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

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

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

jj.rust_library(
name = 'jj-lib-proc-macros',
srcs = glob(["src/**/*.rs"]),
visibility = [ "PUBLIC" ],
proc_macro = True,
deps = [
'third-party//rust:proc-macro2',
'third-party//rust:quote',
'third-party//rust:syn',
]
)

0 comments on commit a05ec2b

Please sign in to comment.