From 9d4a6fc1d92f37f3a2b5cee9de72d2a2aac601f1 Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Sun, 6 Aug 2023 17:50:00 -0500 Subject: [PATCH] proc-macros: add BUCK files Signed-off-by: Austin Seipp --- BUCK | 3 ++- lib/proc-macros/BUCK | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 lib/proc-macros/BUCK diff --git a/BUCK b/BUCK index abe51bdc791..2da90f1918d 100644 --- a/BUCK +++ b/BUCK @@ -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"), ] ] diff --git a/lib/proc-macros/BUCK b/lib/proc-macros/BUCK new file mode 100644 index 00000000000..5b7d9d3d625 --- /dev/null +++ b/lib/proc-macros/BUCK @@ -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? +)