Format BUCK files with buildifier
diff --git a/BUCK b/BUCK
index da6fcb2..86174e9 100644
--- a/BUCK
+++ b/BUCK
@@ -25,19 +25,19 @@
cxx_library(
name = "core",
srcs = ["src/cxx.cc"],
- visibility = ["PUBLIC"],
- header_namespace = "rust",
exported_headers = {
"cxx.h": "include/cxx.h",
},
exported_linker_flags = ["-lstdc++"],
+ header_namespace = "rust",
+ visibility = ["PUBLIC"],
)
rust_library(
name = "macro",
srcs = glob(["macro/src/**"]),
- proc_macro = True,
crate = "cxxbridge_macro",
+ proc_macro = True,
deps = [
"//third-party:proc-macro2",
"//third-party:quote",
diff --git a/third-party/BUCK b/third-party/BUCK
index f58e963..e96c336 100644
--- a/third-party/BUCK
+++ b/third-party/BUCK
@@ -42,7 +42,6 @@
rust_library(
name = "proc-macro2",
srcs = glob(["vendor/proc-macro2-1.0.28/src/**"]),
- visibility = ["PUBLIC"],
features = [
"proc-macro",
"span-locations",
@@ -52,14 +51,15 @@
"--cfg=use_proc_macro",
"--cfg=wrap_proc_macro",
],
+ visibility = ["PUBLIC"],
deps = [":unicode-xid"],
)
rust_library(
name = "quote",
srcs = glob(["vendor/quote-1.0.9/src/**"]),
- visibility = ["PUBLIC"],
features = ["proc-macro"],
+ visibility = ["PUBLIC"],
deps = [":proc-macro2"],
)
@@ -73,7 +73,6 @@
rust_library(
name = "syn",
srcs = glob(["vendor/syn-1.0.74/src/**"]),
- visibility = ["PUBLIC"],
features = [
"clone-impls",
"derive",
@@ -82,6 +81,7 @@
"printing",
"proc-macro",
],
+ visibility = ["PUBLIC"],
deps = [
":proc-macro2",
":quote",