Skip to content

Commit 2a12e93

Browse files
authored
Merge pull request #1336 from dtolnay/bazelalias
Remove aliases of third party deps from //third-party
2 parents 2183a97 + 2ee2b0a commit 2a12e93

File tree

4 files changed

+23
-41
lines changed

4 files changed

+23
-41
lines changed

BUILD

+20-20
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ rust_binary(
2828
data = ["gen/cmd/src/gen/include/cxx.h"],
2929
edition = "2021",
3030
deps = [
31-
"//third-party:clap",
32-
"//third-party:codespan-reporting",
33-
"//third-party:proc-macro2",
34-
"//third-party:quote",
35-
"//third-party:syn",
31+
"@third_party//:clap",
32+
"@third_party//:codespan-reporting",
33+
"@third_party//:proc-macro2",
34+
"@third_party//:quote",
35+
"@third_party//:syn",
3636
],
3737
)
3838

@@ -55,9 +55,9 @@ rust_proc_macro(
5555
srcs = glob(["macro/src/**/*.rs"]),
5656
edition = "2021",
5757
deps = [
58-
"//third-party:proc-macro2",
59-
"//third-party:quote",
60-
"//third-party:syn",
58+
"@third_party//:proc-macro2",
59+
"@third_party//:quote",
60+
"@third_party//:syn",
6161
],
6262
)
6363

@@ -67,13 +67,13 @@ rust_library(
6767
data = ["gen/build/src/gen/include/cxx.h"],
6868
edition = "2021",
6969
deps = [
70-
"//third-party:cc",
71-
"//third-party:codespan-reporting",
72-
"//third-party:once_cell",
73-
"//third-party:proc-macro2",
74-
"//third-party:quote",
75-
"//third-party:scratch",
76-
"//third-party:syn",
70+
"@third_party//:cc",
71+
"@third_party//:codespan-reporting",
72+
"@third_party//:once_cell",
73+
"@third_party//:proc-macro2",
74+
"@third_party//:quote",
75+
"@third_party//:scratch",
76+
"@third_party//:syn",
7777
],
7878
)
7979

@@ -84,10 +84,10 @@ rust_library(
8484
edition = "2021",
8585
visibility = ["//visibility:public"],
8686
deps = [
87-
"//third-party:cc",
88-
"//third-party:codespan-reporting",
89-
"//third-party:proc-macro2",
90-
"//third-party:quote",
91-
"//third-party:syn",
87+
"@third_party//:cc",
88+
"@third_party//:codespan-reporting",
89+
"@third_party//:proc-macro2",
90+
"@third_party//:quote",
91+
"@third_party//:syn",
9292
],
9393
)

MODULE.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ use_repo(rust, "rust_toolchains")
1212
register_toolchains("@rust_toolchains//:all")
1313

1414
crate_repositories = use_extension("//tools/bazel:extension.bzl", "crate_repositories")
15-
use_repo(crate_repositories, "vendor")
15+
use_repo(crate_repositories, third_party = "vendor")

MODULE.bazel.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

third-party/BUILD

-18
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,3 @@ crates_vendor(
99
tags = ["manual"],
1010
vendor_path = "bazel",
1111
)
12-
13-
[
14-
alias(
15-
name = name,
16-
actual = "@vendor//:{}".format(name),
17-
visibility = ["//visibility:public"],
18-
)
19-
for name in [
20-
"cc",
21-
"clap",
22-
"codespan-reporting",
23-
"once_cell",
24-
"proc-macro2",
25-
"quote",
26-
"scratch",
27-
"syn",
28-
]
29-
]

0 commit comments

Comments
 (0)