Skip to content

Commit f199214

Browse files
authored
Update rules_rust to v0.42.1 (with Rust v1.77.2). (#410)
* Update rules_rust * Update rust and vendor * rust_oom -> rg_oom * Change rust version --------- Signed-off-by: Keith Mattix II <[email protected]>
1 parent 5753265 commit f199214

File tree

168 files changed

+2380
-1147
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

168 files changed

+2380
-1147
lines changed

bazel/cargo/wasmsign/remote/BUILD.ansi_term-0.12.1.bazel

+9-6
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library")
1010

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

13-
# licenses([
14-
# "TODO", # MIT
15-
# ])
16-
1713
rust_library(
1814
name = "ansi_term",
19-
srcs = glob(["**/*.rs"]),
15+
srcs = glob(
16+
include = ["**/*.rs"],
17+
allow_empty = False,
18+
),
2019
compile_data = glob(
2120
include = ["**"],
21+
allow_empty = True,
2222
exclude = [
2323
"**/* *",
24+
".tmp_git_root/**/*",
2425
"BUILD",
2526
"BUILD.bazel",
2627
"WORKSPACE",
@@ -29,7 +30,9 @@ rust_library(
2930
),
3031
crate_root = "src/lib.rs",
3132
edition = "2015",
32-
rustc_flags = ["--cap-lints=allow"],
33+
rustc_flags = [
34+
"--cap-lints=allow",
35+
],
3336
tags = [
3437
"cargo-bazel",
3538
"crate-name=ansi_term",

bazel/cargo/wasmsign/remote/BUILD.anyhow-1.0.86.bazel

+17-9
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,18 @@ 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 = "anyhow",
20-
srcs = glob(["**/*.rs"]),
16+
srcs = glob(
17+
include = ["**/*.rs"],
18+
allow_empty = False,
19+
),
2120
compile_data = glob(
2221
include = ["**"],
22+
allow_empty = True,
2323
exclude = [
2424
"**/* *",
25+
".tmp_git_root/**/*",
2526
"BUILD",
2627
"BUILD.bazel",
2728
"WORKSPACE",
@@ -34,7 +35,9 @@ rust_library(
3435
],
3536
crate_root = "src/lib.rs",
3637
edition = "2018",
37-
rustc_flags = ["--cap-lints=allow"],
38+
rustc_flags = [
39+
"--cap-lints=allow",
40+
],
3841
tags = [
3942
"cargo-bazel",
4043
"crate-name=anyhow",
@@ -49,8 +52,11 @@ rust_library(
4952
)
5053

5154
cargo_build_script(
52-
name = "anyhow_build_script",
53-
srcs = glob(["**/*.rs"]),
55+
name = "anyhow_bs",
56+
srcs = glob(
57+
include = ["**/*.rs"],
58+
allow_empty = False,
59+
),
5460
crate_features = [
5561
"default",
5662
"std",
@@ -59,8 +65,10 @@ cargo_build_script(
5965
crate_root = "build.rs",
6066
data = glob(
6167
include = ["**"],
68+
allow_empty = True,
6269
exclude = [
6370
"**/* *",
71+
".tmp_git_root/**/*",
6472
"BUILD",
6573
"BUILD.bazel",
6674
"WORKSPACE",
@@ -84,6 +92,6 @@ cargo_build_script(
8492

8593
alias(
8694
name = "build_script_build",
87-
actual = "anyhow_build_script",
95+
actual = ":anyhow_bs",
8896
tags = ["manual"],
8997
)

bazel/cargo/wasmsign/remote/BUILD.atty-0.2.14.bazel

+18-6
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library")
1010

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

13-
# licenses([
14-
# "TODO", # MIT
15-
# ])
16-
1713
rust_library(
1814
name = "atty",
19-
srcs = glob(["**/*.rs"]),
15+
srcs = glob(
16+
include = ["**/*.rs"],
17+
allow_empty = False,
18+
),
2019
compile_data = glob(
2120
include = ["**"],
21+
allow_empty = True,
2222
exclude = [
2323
"**/* *",
24+
".tmp_git_root/**/*",
2425
"BUILD",
2526
"BUILD.bazel",
2627
"WORKSPACE",
@@ -29,7 +30,9 @@ rust_library(
2930
),
3031
crate_root = "src/lib.rs",
3132
edition = "2015",
32-
rustc_flags = ["--cap-lints=allow"],
33+
rustc_flags = [
34+
"--cap-lints=allow",
35+
],
3336
tags = [
3437
"cargo-bazel",
3538
"crate-name=atty",
@@ -60,6 +63,12 @@ rust_library(
6063
"@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [
6164
"@cu__libc-0.2.155//:libc", # cfg(unix)
6265
],
66+
"@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [
67+
"@cu__libc-0.2.155//:libc", # cfg(unix)
68+
],
69+
"@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [
70+
"@cu__libc-0.2.155//:libc", # cfg(unix)
71+
],
6372
"@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [
6473
"@cu__libc-0.2.155//:libc", # cfg(unix)
6574
],
@@ -111,6 +120,9 @@ rust_library(
111120
"@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [
112121
"@cu__libc-0.2.155//:libc", # cfg(unix)
113122
],
123+
"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [
124+
"@cu__libc-0.2.155//:libc", # cfg(unix)
125+
],
114126
"//conditions:default": [],
115127
}),
116128
)

bazel/cargo/wasmsign/remote/BUILD.bazel

+11-5
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/wasmsign/remote/BUILD.bitflags-1.3.2.bazel

+9-6
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,18 @@ 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 = "bitflags",
19-
srcs = glob(["**/*.rs"]),
15+
srcs = glob(
16+
include = ["**/*.rs"],
17+
allow_empty = False,
18+
),
2019
compile_data = glob(
2120
include = ["**"],
21+
allow_empty = True,
2222
exclude = [
2323
"**/* *",
24+
".tmp_git_root/**/*",
2425
"BUILD",
2526
"BUILD.bazel",
2627
"WORKSPACE",
@@ -32,7 +33,9 @@ rust_library(
3233
],
3334
crate_root = "src/lib.rs",
3435
edition = "2018",
35-
rustc_flags = ["--cap-lints=allow"],
36+
rustc_flags = [
37+
"--cap-lints=allow",
38+
],
3639
tags = [
3740
"cargo-bazel",
3841
"crate-name=bitflags",

bazel/cargo/wasmsign/remote/BUILD.byteorder-1.5.0.bazel

+9-6
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library")
1010

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

13-
# licenses([
14-
# "TODO", # Unlicense OR MIT
15-
# ])
16-
1713
rust_library(
1814
name = "byteorder",
19-
srcs = glob(["**/*.rs"]),
15+
srcs = glob(
16+
include = ["**/*.rs"],
17+
allow_empty = False,
18+
),
2019
compile_data = glob(
2120
include = ["**"],
21+
allow_empty = True,
2222
exclude = [
2323
"**/* *",
24+
".tmp_git_root/**/*",
2425
"BUILD",
2526
"BUILD.bazel",
2627
"WORKSPACE",
@@ -33,7 +34,9 @@ rust_library(
3334
],
3435
crate_root = "src/lib.rs",
3536
edition = "2021",
36-
rustc_flags = ["--cap-lints=allow"],
37+
rustc_flags = [
38+
"--cap-lints=allow",
39+
],
3740
tags = [
3841
"cargo-bazel",
3942
"crate-name=byteorder",

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

+9-6
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,18 @@ 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 = False,
18+
),
2019
compile_data = glob(
2120
include = ["**"],
21+
allow_empty = True,
2222
exclude = [
2323
"**/* *",
24+
".tmp_git_root/**/*",
2425
"BUILD",
2526
"BUILD.bazel",
2627
"WORKSPACE",
@@ -29,7 +30,9 @@ rust_library(
2930
),
3031
crate_root = "src/lib.rs",
3132
edition = "2018",
32-
rustc_flags = ["--cap-lints=allow"],
33+
rustc_flags = [
34+
"--cap-lints=allow",
35+
],
3336
tags = [
3437
"cargo-bazel",
3538
"crate-name=cfg-if",

bazel/cargo/wasmsign/remote/BUILD.clap-2.34.0.bazel

+18-6
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library")
1010

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

13-
# licenses([
14-
# "TODO", # MIT
15-
# ])
16-
1713
rust_library(
1814
name = "clap",
19-
srcs = glob(["**/*.rs"]),
15+
srcs = glob(
16+
include = ["**/*.rs"],
17+
allow_empty = False,
18+
),
2019
compile_data = glob(
2120
include = ["**"],
21+
allow_empty = True,
2222
exclude = [
2323
"**/* *",
24+
".tmp_git_root/**/*",
2425
"BUILD",
2526
"BUILD.bazel",
2627
"WORKSPACE",
@@ -38,7 +39,9 @@ rust_library(
3839
],
3940
crate_root = "src/lib.rs",
4041
edition = "2018",
41-
rustc_flags = ["--cap-lints=allow"],
42+
rustc_flags = [
43+
"--cap-lints=allow",
44+
],
4245
tags = [
4346
"cargo-bazel",
4447
"crate-name=clap",
@@ -73,6 +76,12 @@ rust_library(
7376
"@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [
7477
"@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows))
7578
],
79+
"@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [
80+
"@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows))
81+
],
82+
"@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [
83+
"@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows))
84+
],
7685
"@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [
7786
"@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows))
7887
],
@@ -136,6 +145,9 @@ rust_library(
136145
"@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [
137146
"@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows))
138147
],
148+
"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [
149+
"@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows))
150+
],
139151
"@rules_rust//rust/platform:x86_64-unknown-none": [
140152
"@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows))
141153
],

bazel/cargo/wasmsign/remote/BUILD.ct-codecs-1.1.1.bazel

+9-6
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library")
1010

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

13-
# licenses([
14-
# "TODO", # MIT
15-
# ])
16-
1713
rust_library(
1814
name = "ct_codecs",
19-
srcs = glob(["**/*.rs"]),
15+
srcs = glob(
16+
include = ["**/*.rs"],
17+
allow_empty = False,
18+
),
2019
compile_data = glob(
2120
include = ["**"],
21+
allow_empty = True,
2222
exclude = [
2323
"**/* *",
24+
".tmp_git_root/**/*",
2425
"BUILD",
2526
"BUILD.bazel",
2627
"WORKSPACE",
@@ -33,7 +34,9 @@ rust_library(
3334
],
3435
crate_root = "src/lib.rs",
3536
edition = "2018",
36-
rustc_flags = ["--cap-lints=allow"],
37+
rustc_flags = [
38+
"--cap-lints=allow",
39+
],
3740
tags = [
3841
"cargo-bazel",
3942
"crate-name=ct-codecs",

0 commit comments

Comments
 (0)