Skip to content

Commit 7e0d51e

Browse files
committed
Update rules_rust to v0.47.1 (with Rust v1.79.0).
Signed-off-by: Piotr Sikora <[email protected]>
1 parent 442edc3 commit 7e0d51e

10 files changed

+73
-50
lines changed

bazel/cargo/remote/BUILD.ahash-0.8.3.bazel

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ load("@rules_rust//rust:defs.bzl", "rust_library")
1111

1212
package(default_visibility = ["//visibility:public"])
1313

14-
# licenses([
15-
# "TODO", # MIT OR Apache-2.0
16-
# ])
17-
1814
rust_library(
1915
name = "ahash",
20-
srcs = glob(["**/*.rs"]),
16+
srcs = glob(
17+
include = ["**/*.rs"],
18+
allow_empty = True,
19+
),
2120
compile_data = glob(
2221
include = ["**"],
22+
allow_empty = True,
2323
exclude = [
2424
"**/* *",
2525
".tmp_git_root/**/*",
@@ -184,12 +184,16 @@ rust_library(
184184
)
185185

186186
cargo_build_script(
187-
name = "ahash_build_script",
188-
srcs = glob(["**/*.rs"]),
187+
name = "_bs",
188+
srcs = glob(
189+
include = ["**/*.rs"],
190+
allow_empty = True,
191+
),
189192
crate_name = "build_script_build",
190193
crate_root = "build.rs",
191194
data = glob(
192195
include = ["**"],
196+
allow_empty = True,
193197
exclude = [
194198
"**/* *",
195199
".tmp_git_root/**/*",
@@ -200,6 +204,7 @@ cargo_build_script(
200204
],
201205
),
202206
edition = "2018",
207+
pkg_name = "ahash",
203208
rustc_flags = [
204209
"--cap-lints=allow",
205210
],
@@ -219,6 +224,6 @@ cargo_build_script(
219224

220225
alias(
221226
name = "build_script_build",
222-
actual = ":ahash_build_script",
227+
actual = ":_bs",
223228
tags = ["manual"],
224229
)

bazel/cargo/remote/BUILD.allocator-api2-0.2.14.bazel

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ load("@rules_rust//rust:defs.bzl", "rust_library")
1010

1111
package(default_visibility = ["//visibility:public"])
1212

13-
# licenses([
14-
# "TODO", # MIT OR Apache-2.0
15-
# ])
16-
1713
rust_library(
1814
name = "allocator_api2",
19-
srcs = glob(["**/*.rs"]),
15+
srcs = glob(
16+
include = ["**/*.rs"],
17+
allow_empty = True,
18+
),
2019
compile_data = glob(
2120
include = ["**"],
21+
allow_empty = True,
2222
exclude = [
2323
"**/* *",
2424
".tmp_git_root/**/*",

bazel/cargo/remote/BUILD.bazel

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,21 @@ exports_files(
1313
"cargo-bazel.json",
1414
"crates.bzl",
1515
"defs.bzl",
16-
] + glob(["*.bazel"]),
16+
] + glob(
17+
include = ["*.bazel"],
18+
allow_empty = True,
19+
),
1720
)
1821

1922
filegroup(
2023
name = "srcs",
21-
srcs = glob([
22-
"*.bazel",
23-
"*.bzl",
24-
]),
24+
srcs = glob(
25+
include = [
26+
"*.bazel",
27+
"*.bzl",
28+
],
29+
allow_empty = True,
30+
),
2531
)
2632

2733
# Workspace Member Dependencies

bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ load("@rules_rust//rust:defs.bzl", "rust_library")
1010

1111
package(default_visibility = ["//visibility:public"])
1212

13-
# licenses([
14-
# "TODO", # MIT/Apache-2.0
15-
# ])
16-
1713
rust_library(
1814
name = "cfg_if",
19-
srcs = glob(["**/*.rs"]),
15+
srcs = glob(
16+
include = ["**/*.rs"],
17+
allow_empty = True,
18+
),
2019
compile_data = glob(
2120
include = ["**"],
21+
allow_empty = True,
2222
exclude = [
2323
"**/* *",
2424
".tmp_git_root/**/*",

bazel/cargo/remote/BUILD.hashbrown-0.14.0.bazel

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ load("@rules_rust//rust:defs.bzl", "rust_library")
1010

1111
package(default_visibility = ["//visibility:public"])
1212

13-
# licenses([
14-
# "TODO", # MIT OR Apache-2.0
15-
# ])
16-
1713
rust_library(
1814
name = "hashbrown",
19-
srcs = glob(["**/*.rs"]),
15+
srcs = glob(
16+
include = ["**/*.rs"],
17+
allow_empty = True,
18+
),
2019
compile_data = glob(
2120
include = ["**"],
21+
allow_empty = True,
2222
exclude = [
2323
"**/* *",
2424
".tmp_git_root/**/*",

bazel/cargo/remote/BUILD.log-0.4.18.bazel

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ load("@rules_rust//rust:defs.bzl", "rust_library")
1111

1212
package(default_visibility = ["//visibility:public"])
1313

14-
# licenses([
15-
# "TODO", # MIT OR Apache-2.0
16-
# ])
17-
1814
rust_library(
1915
name = "log",
20-
srcs = glob(["**/*.rs"]),
16+
srcs = glob(
17+
include = ["**/*.rs"],
18+
allow_empty = True,
19+
),
2120
compile_data = glob(
2221
include = ["**"],
22+
allow_empty = True,
2323
exclude = [
2424
"**/* *",
2525
".tmp_git_root/**/*",
@@ -85,12 +85,16 @@ rust_library(
8585
)
8686

8787
cargo_build_script(
88-
name = "log_build_script",
89-
srcs = glob(["**/*.rs"]),
88+
name = "_bs",
89+
srcs = glob(
90+
include = ["**/*.rs"],
91+
allow_empty = True,
92+
),
9093
crate_name = "build_script_build",
9194
crate_root = "build.rs",
9295
data = glob(
9396
include = ["**"],
97+
allow_empty = True,
9498
exclude = [
9599
"**/* *",
96100
".tmp_git_root/**/*",
@@ -101,6 +105,7 @@ cargo_build_script(
101105
],
102106
),
103107
edition = "2015",
108+
pkg_name = "log",
104109
rustc_flags = [
105110
"--cap-lints=allow",
106111
],
@@ -117,6 +122,6 @@ cargo_build_script(
117122

118123
alias(
119124
name = "build_script_build",
120-
actual = ":log_build_script",
125+
actual = ":_bs",
121126
tags = ["manual"],
122127
)

bazel/cargo/remote/BUILD.once_cell-1.18.0.bazel

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ load("@rules_rust//rust:defs.bzl", "rust_library")
1010

1111
package(default_visibility = ["//visibility:public"])
1212

13-
# licenses([
14-
# "TODO", # MIT OR Apache-2.0
15-
# ])
16-
1713
rust_library(
1814
name = "once_cell",
19-
srcs = glob(["**/*.rs"]),
15+
srcs = glob(
16+
include = ["**/*.rs"],
17+
allow_empty = True,
18+
),
2019
compile_data = glob(
2120
include = ["**"],
21+
allow_empty = True,
2222
exclude = [
2323
"**/* *",
2424
".tmp_git_root/**/*",

bazel/cargo/remote/BUILD.version_check-0.9.4.bazel

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ load("@rules_rust//rust:defs.bzl", "rust_library")
1010

1111
package(default_visibility = ["//visibility:public"])
1212

13-
# licenses([
14-
# "TODO", # MIT/Apache-2.0
15-
# ])
16-
1713
rust_library(
1814
name = "version_check",
19-
srcs = glob(["**/*.rs"]),
15+
srcs = glob(
16+
include = ["**/*.rs"],
17+
allow_empty = True,
18+
),
2019
compile_data = glob(
2120
include = ["**"],
21+
allow_empty = True,
2222
exclude = [
2323
"**/* *",
2424
".tmp_git_root/**/*",

bazel/cargo/remote/defs.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,8 @@ def aliases(
295295
_NORMAL_DEPENDENCIES = {
296296
"": {
297297
_COMMON_CONDITION: {
298-
"hashbrown": "@crates_vendor__hashbrown-0.14.0//:hashbrown",
299-
"log": "@crates_vendor__log-0.4.18//:log",
298+
"hashbrown": Label("@crates_vendor__hashbrown-0.14.0//:hashbrown"),
299+
"log": Label("@crates_vendor__log-0.4.18//:log"),
300300
},
301301
},
302302
}

bazel/repositories.bzl

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,18 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
1616
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
1717

1818
def proxy_wasm_rust_sdk_repositories():
19+
maybe(
20+
http_archive,
21+
name = "rules_cc",
22+
url = "https://github.com/bazelbuild/rules_cc/releases/download/0.0.10-rc1/rules_cc-0.0.10-rc1.tar.gz",
23+
sha256 = "d75a040c32954da0d308d3f2ea2ba735490f49b3a7aa3e4b40259ca4b814f825",
24+
)
25+
1926
maybe(
2027
http_archive,
2128
name = "rules_rust",
22-
sha256 = "6501960c3e4da32495d1e1007ded0769a534cb195c30dea36aa54f9d8a3f0361",
23-
url = "https://github.com/bazelbuild/rules_rust/releases/download/0.38.0/rules_rust-v0.38.0.tar.gz",
29+
sha256 = "df973075339aaaabb8cbe697808514d82d8f00a333e3ebb227bfd4308182985b",
30+
url = "https://github.com/bazelbuild/rules_rust/releases/download/0.47.1/rules_rust-v0.47.1.tar.gz",
2431
patches = ["//bazel:rules_rust.patch"],
2532
patch_args = ["-p1"],
2633
)

0 commit comments

Comments
 (0)