diff --git a/BUCK b/BUCK index 0832b61809b..8f1a5348177 100644 --- a/BUCK +++ b/BUCK @@ -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"), ] ] diff --git a/lib/proc-macros/BUCK b/lib/proc-macros/BUCK new file mode 100644 index 00000000000..87cacea8a0c --- /dev/null +++ b/lib/proc-macros/BUCK @@ -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', + ] +)