aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2023-03-05 16:08:00 -0800
committerDavid Tolnay <dtolnay@gmail.com>2023-03-05 16:08:48 -0800
commit909c828a02290b5a825cfd2643aa8cbfc8544449 (patch)
tree7bc60ce1361bd23712c6edb40c757f044cd23fce
parent13ec414491408e0aef46475c3309a1aa2d2e42dc (diff)
downloadcxx-909c828a02290b5a825cfd2643aa8cbfc8544449.tar.gz
Disable Buck doctests on third-party code
-rw-r--r--third-party/BUCK29
-rw-r--r--third-party/reindeer.toml2
-rw-r--r--tools/buck/third_party.bzl5
3 files changed, 22 insertions, 14 deletions
diff --git a/third-party/BUCK b/third-party/BUCK
index dddbab6b..54b3e89a 100644
--- a/third-party/BUCK
+++ b/third-party/BUCK
@@ -1,8 +1,9 @@
# @generated by `reindeer buckify`
load("//tools/buck:buildscript.bzl", "buildscript_args")
+load("//tools/buck:third_party.bzl", "third_party_rust_library")
-rust_library(
+third_party_rust_library(
name = "bitflags-1.3.2",
srcs = [
"vendor/bitflags-1.3.2/src/example_generated.rs",
@@ -22,7 +23,7 @@ alias(
visibility = ["PUBLIC"],
)
-rust_library(
+third_party_rust_library(
name = "cc-1.0.79",
srcs = [
"vendor/cc-1.0.79/src/com.rs",
@@ -46,7 +47,7 @@ alias(
visibility = ["PUBLIC"],
)
-rust_library(
+third_party_rust_library(
name = "clap-4.1.4",
srcs = [
"vendor/clap-4.1.4/examples/demo.md",
@@ -141,7 +142,7 @@ rust_library(
],
)
-rust_library(
+third_party_rust_library(
name = "clap_lex-0.3.1",
srcs = ["vendor/clap_lex-0.3.1/src/lib.rs"],
crate = "clap_lex",
@@ -158,7 +159,7 @@ alias(
visibility = ["PUBLIC"],
)
-rust_library(
+third_party_rust_library(
name = "codespan-reporting-0.11.1",
srcs = [
"vendor/codespan-reporting-0.11.1/src/diagnostic.rs",
@@ -186,7 +187,7 @@ alias(
visibility = ["PUBLIC"],
)
-rust_library(
+third_party_rust_library(
name = "once_cell-1.17.0",
srcs = [
"vendor/once_cell-1.17.0/src/imp_cs.rs",
@@ -208,7 +209,7 @@ rust_library(
visibility = [],
)
-rust_library(
+third_party_rust_library(
name = "os_str_bytes-6.4.1",
srcs = [
"vendor/os_str_bytes-6.4.1/src/common/mod.rs",
@@ -241,7 +242,7 @@ alias(
visibility = ["PUBLIC"],
)
-rust_library(
+third_party_rust_library(
name = "proc-macro2-1.0.51",
srcs = [
"vendor/proc-macro2-1.0.51/src/detection.rs",
@@ -303,7 +304,7 @@ alias(
visibility = ["PUBLIC"],
)
-rust_library(
+third_party_rust_library(
name = "quote-1.0.23",
srcs = [
"vendor/quote-1.0.23/src/ext.rs",
@@ -361,7 +362,7 @@ alias(
visibility = ["PUBLIC"],
)
-rust_library(
+third_party_rust_library(
name = "scratch-1.0.3",
srcs = ["vendor/scratch-1.0.3/src/lib.rs"],
crate = "scratch",
@@ -380,7 +381,7 @@ alias(
visibility = ["PUBLIC"],
)
-rust_library(
+third_party_rust_library(
name = "syn-1.0.107",
srcs = [
"vendor/syn-1.0.107/src/attr.rs",
@@ -499,7 +500,7 @@ buildscript_args(
version = "1.0.107",
)
-rust_library(
+third_party_rust_library(
name = "termcolor-1.2.0",
srcs = ["vendor/termcolor-1.2.0/src/lib.rs"],
crate = "termcolor",
@@ -509,7 +510,7 @@ rust_library(
visibility = [],
)
-rust_library(
+third_party_rust_library(
name = "unicode-ident-1.0.6",
srcs = [
"vendor/unicode-ident-1.0.6/src/lib.rs",
@@ -522,7 +523,7 @@ rust_library(
visibility = [],
)
-rust_library(
+third_party_rust_library(
name = "unicode-width-0.1.10",
srcs = [
"vendor/unicode-width-0.1.10/src/lib.rs",
diff --git a/third-party/reindeer.toml b/third-party/reindeer.toml
index eb65857c..a7daf6e0 100644
--- a/third-party/reindeer.toml
+++ b/third-party/reindeer.toml
@@ -10,4 +10,6 @@ generated_file_header = """
"""
buckfile_imports = """
load("//tools/buck:buildscript.bzl", "buildscript_args")
+load("//tools/buck:third_party.bzl", "third_party_rust_library")
"""
+rust_library = "third_party_rust_library"
diff --git a/tools/buck/third_party.bzl b/tools/buck/third_party.bzl
new file mode 100644
index 00000000..84e5ca8f
--- /dev/null
+++ b/tools/buck/third_party.bzl
@@ -0,0 +1,5 @@
+def third_party_rust_library(**kwargs):
+ native.rust_library(
+ doctests = False,
+ **kwargs
+ )