Skip to content

Commit

Permalink
proc-macros: add BUILD 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 e932758 commit 2cc0b14
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
for (name, actual) in [
# (top-level name, fully-qualified target name)
("gen-protos", "//lib/gen-protos:gen-protos"),
("proc-macros", "//lib/proc-macros:proc-macros"),
]
]
22 changes: 22 additions & 0 deletions lib/proc-macros/BUILD
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?
)
3 changes: 3 additions & 0 deletions lib/proc-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ readme = { workspace = true }

include = ["/LICENSE", "/src/"]

[lints]
workspace = true

[lib]
proc-macro = true

Expand Down

0 comments on commit 2cc0b14

Please sign in to comment.