aboutsummaryrefslogtreecommitdiff
path: root/BUCK
diff options
context:
space:
mode:
Diffstat (limited to 'BUCK')
-rw-r--r--BUCK12
1 files changed, 6 insertions, 6 deletions
diff --git a/BUCK b/BUCK
index f447d729..b93397ee 100644
--- a/BUCK
+++ b/BUCK
@@ -4,7 +4,7 @@ rust_library(
doc_deps = [
":cxx-build",
],
- edition = "2018",
+ edition = "2021",
features = [
"alloc",
"std",
@@ -28,7 +28,7 @@ rust_binary(
"gen/cmd/src/gen",
"gen/cmd/src/syntax",
],
- edition = "2018",
+ edition = "2021",
deps = [
"//third-party:clap",
"//third-party:codespan-reporting",
@@ -44,8 +44,8 @@ cxx_library(
exported_headers = {
"cxx.h": "include/cxx.h",
},
- exported_linker_flags = ["-lstdc++"],
header_namespace = "rust",
+ preferred_linkage = "static",
visibility = ["PUBLIC"],
)
@@ -53,7 +53,7 @@ rust_library(
name = "cxxbridge-macro",
srcs = glob(["macro/src/**/*.rs"]) + ["macro/src/syntax"],
doctests = False,
- edition = "2018",
+ edition = "2021",
proc_macro = True,
deps = [
"//third-party:proc-macro2",
@@ -69,7 +69,7 @@ rust_library(
"gen/build/src/syntax",
],
doctests = False,
- edition = "2018",
+ edition = "2021",
deps = [
"//third-party:cc",
"//third-party:codespan-reporting",
@@ -87,7 +87,7 @@ rust_library(
"gen/lib/src/gen",
"gen/lib/src/syntax",
],
- edition = "2018",
+ edition = "2021",
visibility = ["PUBLIC"],
deps = [
"//third-party:cc",