From e798261763de1780d99fc815cc18337877a37f27 Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Sun, 6 Aug 2023 17:50:00 -0500 Subject: [PATCH] proc-macros: add BUILD files Signed-off-by: Austin Seipp --- lib/proc-macros/BUILD | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lib/proc-macros/BUILD diff --git a/lib/proc-macros/BUILD b/lib/proc-macros/BUILD new file mode 100644 index 0000000000..5b7d9d3d62 --- /dev/null +++ b/lib/proc-macros/BUILD @@ -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? +)