Skip to content

Commit b95b591

Browse files
authored
Update cargo-raze to v0.14.1. (#132)
Signed-off-by: Martijn Swaagman <[email protected]>
1 parent 375a366 commit b95b591

22 files changed

+161
-121
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030

3131
When updating dependencies, you need to regenerate Bazel `BUILD` files to match updated `Cargo.toml`:
3232
```
33-
cargo install cargo-raze --version 0.12.0
33+
cargo install cargo-raze --version 0.14.1
3434
cargo raze --generate-lockfile
3535
```

WORKSPACE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
1414

1515
http_archive(
1616
name = "cargo_raze",
17-
sha256 = "0a7986b1a8ec965ee7aa317ac61e82ea08568cfdf36b7ccc4dd3d1aff3b36e0b",
18-
strip_prefix = "cargo-raze-0.12.0",
19-
url = "https://github.com/google/cargo-raze/archive/v0.12.0.tar.gz",
17+
sha256 = "75192fdcb2777527c70e1053a318a9aa0beac3c093401921c1e7c4d53084caa8",
18+
strip_prefix = "cargo-raze-0.14.1",
19+
url = "https://github.com/google/cargo-raze/archive/v0.14.1.tar.gz",
2020
)
2121

2222
load("@cargo_raze//:repositories.bzl", "cargo_raze_repositories")

bazel/cargo/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ alias(
3232

3333
alias(
3434
name = "getrandom",
35-
actual = "@raze__getrandom__0_2_3//:getrandom",
35+
actual = "@raze__getrandom__0_2_4//:getrandom",
3636
tags = [
3737
"cargo-raze",
3838
"manual",

bazel/cargo/Cargo.raze.lock

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# It is not intended for manual editing.
33
[[package]]
44
name = "ahash"
5-
version = "0.7.4"
5+
version = "0.7.6"
66
source = "registry+https://github.com/rust-lang/crates.io-index"
7-
checksum = "43bb833f0bf979d8475d38fbf09ed3b8a55e1885fe93ad3f93239fc6a4f17b98"
7+
checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47"
88
dependencies = [
99
"getrandom",
1010
"once_cell",
@@ -44,9 +44,9 @@ dependencies = [
4444

4545
[[package]]
4646
name = "getrandom"
47-
version = "0.2.3"
47+
version = "0.2.4"
4848
source = "registry+https://github.com/rust-lang/crates.io-index"
49-
checksum = "7fcd999463524c52659517fe2cea98493cfe485d10565e7b0fb07dbba7ad2753"
49+
checksum = "418d37c8b1d42553c93648be529cb70f920d3baf8ef469b74b9638df426e0b4c"
5050
dependencies = [
5151
"cfg-if 1.0.0",
5252
"libc",
@@ -64,9 +64,9 @@ dependencies = [
6464

6565
[[package]]
6666
name = "libc"
67-
version = "0.2.97"
67+
version = "0.2.116"
6868
source = "registry+https://github.com/rust-lang/crates.io-index"
69-
checksum = "12b8adadd720df158f4d70dfe7ccc6adb0472d7c55ca83445f6a5ab3e36f8fb6"
69+
checksum = "565dbd88872dbe4cc8a46e527f26483c1d1f7afa6b884a3bd6cd893d4f98da74"
7070

7171
[[package]]
7272
name = "log"
@@ -104,9 +104,9 @@ dependencies = [
104104

105105
[[package]]
106106
name = "once_cell"
107-
version = "1.8.0"
107+
version = "1.9.0"
108108
source = "registry+https://github.com/rust-lang/crates.io-index"
109-
checksum = "692fcb63b64b1758029e0a96ee63e049ce8c5948587f2f7208df04625e5f6b56"
109+
checksum = "da32515d9f6e6e489d7bc9d84c71b060db7247dc035bbe44eac88cf87486d8d5"
110110

111111
[[package]]
112112
name = "proxy-wasm"
@@ -132,9 +132,9 @@ dependencies = [
132132

133133
[[package]]
134134
name = "version_check"
135-
version = "0.9.3"
135+
version = "0.9.4"
136136
source = "registry+https://github.com/rust-lang/crates.io-index"
137-
checksum = "5fecdca9a5291cc2b8dcf7dc02453fee791a280f3743cb0905f8822ae463b3fe"
137+
checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
138138

139139
[[package]]
140140
name = "wasi"

bazel/cargo/crates.bzl

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ def raze_fetch_remote_crates():
1313
"""This function defines a collection of repos and should be called in a WORKSPACE file"""
1414
maybe(
1515
http_archive,
16-
name = "raze__ahash__0_7_4",
17-
url = "https://crates.io/api/v1/crates/ahash/0.7.4/download",
16+
name = "raze__ahash__0_7_6",
17+
url = "https://crates.io/api/v1/crates/ahash/0.7.6/download",
1818
type = "tar.gz",
19-
sha256 = "43bb833f0bf979d8475d38fbf09ed3b8a55e1885fe93ad3f93239fc6a4f17b98",
20-
strip_prefix = "ahash-0.7.4",
21-
build_file = Label("//bazel/cargo/remote:BUILD.ahash-0.7.4.bazel"),
19+
sha256 = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47",
20+
strip_prefix = "ahash-0.7.6",
21+
build_file = Label("//bazel/cargo/remote:BUILD.ahash-0.7.6.bazel"),
2222
)
2323

2424
maybe(
@@ -53,12 +53,12 @@ def raze_fetch_remote_crates():
5353

5454
maybe(
5555
http_archive,
56-
name = "raze__getrandom__0_2_3",
57-
url = "https://crates.io/api/v1/crates/getrandom/0.2.3/download",
56+
name = "raze__getrandom__0_2_4",
57+
url = "https://crates.io/api/v1/crates/getrandom/0.2.4/download",
5858
type = "tar.gz",
59-
sha256 = "7fcd999463524c52659517fe2cea98493cfe485d10565e7b0fb07dbba7ad2753",
60-
strip_prefix = "getrandom-0.2.3",
61-
build_file = Label("//bazel/cargo/remote:BUILD.getrandom-0.2.3.bazel"),
59+
sha256 = "418d37c8b1d42553c93648be529cb70f920d3baf8ef469b74b9638df426e0b4c",
60+
strip_prefix = "getrandom-0.2.4",
61+
build_file = Label("//bazel/cargo/remote:BUILD.getrandom-0.2.4.bazel"),
6262
)
6363

6464
maybe(
@@ -73,12 +73,12 @@ def raze_fetch_remote_crates():
7373

7474
maybe(
7575
http_archive,
76-
name = "raze__libc__0_2_97",
77-
url = "https://crates.io/api/v1/crates/libc/0.2.97/download",
76+
name = "raze__libc__0_2_116",
77+
url = "https://crates.io/api/v1/crates/libc/0.2.116/download",
7878
type = "tar.gz",
79-
sha256 = "12b8adadd720df158f4d70dfe7ccc6adb0472d7c55ca83445f6a5ab3e36f8fb6",
80-
strip_prefix = "libc-0.2.97",
81-
build_file = Label("//bazel/cargo/remote:BUILD.libc-0.2.97.bazel"),
79+
sha256 = "565dbd88872dbe4cc8a46e527f26483c1d1f7afa6b884a3bd6cd893d4f98da74",
80+
strip_prefix = "libc-0.2.116",
81+
build_file = Label("//bazel/cargo/remote:BUILD.libc-0.2.116.bazel"),
8282
)
8383

8484
maybe(
@@ -113,12 +113,12 @@ def raze_fetch_remote_crates():
113113

114114
maybe(
115115
http_archive,
116-
name = "raze__once_cell__1_8_0",
117-
url = "https://crates.io/api/v1/crates/once_cell/1.8.0/download",
116+
name = "raze__once_cell__1_9_0",
117+
url = "https://crates.io/api/v1/crates/once_cell/1.9.0/download",
118118
type = "tar.gz",
119-
sha256 = "692fcb63b64b1758029e0a96ee63e049ce8c5948587f2f7208df04625e5f6b56",
120-
strip_prefix = "once_cell-1.8.0",
121-
build_file = Label("//bazel/cargo/remote:BUILD.once_cell-1.8.0.bazel"),
119+
sha256 = "da32515d9f6e6e489d7bc9d84c71b060db7247dc035bbe44eac88cf87486d8d5",
120+
strip_prefix = "once_cell-1.9.0",
121+
build_file = Label("//bazel/cargo/remote:BUILD.once_cell-1.9.0.bazel"),
122122
)
123123

124124
maybe(
@@ -133,12 +133,12 @@ def raze_fetch_remote_crates():
133133

134134
maybe(
135135
http_archive,
136-
name = "raze__version_check__0_9_3",
137-
url = "https://crates.io/api/v1/crates/version_check/0.9.3/download",
136+
name = "raze__version_check__0_9_4",
137+
url = "https://crates.io/api/v1/crates/version_check/0.9.4/download",
138138
type = "tar.gz",
139-
sha256 = "5fecdca9a5291cc2b8dcf7dc02453fee791a280f3743cb0905f8822ae463b3fe",
140-
strip_prefix = "version_check-0.9.3",
141-
build_file = Label("//bazel/cargo/remote:BUILD.version_check-0.9.3.bazel"),
139+
sha256 = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f",
140+
strip_prefix = "version_check-0.9.4",
141+
build_file = Label("//bazel/cargo/remote:BUILD.version_check-0.9.4.bazel"),
142142
)
143143

144144
maybe(

bazel/cargo/remote/BUILD.ahash-0.7.4.bazel renamed to bazel/cargo/remote/BUILD.ahash-0.7.6.bazel

Lines changed: 60 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects")
1010

1111
# buildifier: disable=load
1212
load(
13-
"@rules_rust//rust:rust.bzl",
13+
"@rules_rust//rust:defs.bzl",
1414
"rust_binary",
1515
"rust_library",
16+
"rust_proc_macro",
1617
"rust_test",
1718
)
1819

@@ -53,39 +54,58 @@ cargo_build_script(
5354
"cargo-raze",
5455
"manual",
5556
],
56-
version = "0.7.4",
57+
version = "0.7.6",
5758
visibility = ["//visibility:private"],
5859
deps = [
59-
"@raze__version_check__0_9_3//:version_check",
60+
"@raze__version_check__0_9_4//:version_check",
6061
] + selects.with_or({
6162
# cfg(any(target_os = "linux", target_os = "android", target_os = "windows", target_os = "macos", target_os = "ios", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly", target_os = "solaris", target_os = "illumos", target_os = "fuchsia", target_os = "redox", target_os = "cloudabi", target_os = "haiku", target_os = "vxworks", target_os = "emscripten", target_os = "wasi"))
6263
(
64+
"@rules_rust//rust/platform:i686-apple-darwin",
65+
"@rules_rust//rust/platform:i686-pc-windows-msvc",
66+
"@rules_rust//rust/platform:i686-unknown-linux-gnu",
67+
"@rules_rust//rust/platform:x86_64-apple-darwin",
68+
"@rules_rust//rust/platform:x86_64-pc-windows-msvc",
69+
"@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
6370
"@rules_rust//rust/platform:aarch64-apple-darwin",
6471
"@rules_rust//rust/platform:aarch64-apple-ios",
6572
"@rules_rust//rust/platform:aarch64-linux-android",
6673
"@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
6774
"@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
68-
"@rules_rust//rust/platform:i686-apple-darwin",
6975
"@rules_rust//rust/platform:i686-linux-android",
70-
"@rules_rust//rust/platform:i686-pc-windows-msvc",
7176
"@rules_rust//rust/platform:i686-unknown-freebsd",
72-
"@rules_rust//rust/platform:i686-unknown-linux-gnu",
7377
"@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
7478
"@rules_rust//rust/platform:s390x-unknown-linux-gnu",
7579
"@rules_rust//rust/platform:wasm32-wasi",
76-
"@rules_rust//rust/platform:x86_64-apple-darwin",
7780
"@rules_rust//rust/platform:x86_64-apple-ios",
7881
"@rules_rust//rust/platform:x86_64-linux-android",
79-
"@rules_rust//rust/platform:x86_64-pc-windows-msvc",
8082
"@rules_rust//rust/platform:x86_64-unknown-freebsd",
81-
"@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
8283
): [
8384
],
8485
"//conditions:default": [],
8586
}) + selects.with_or({
86-
# cfg(not(any(target_os = "linux", target_os = "android", target_os = "windows", target_os = "macos", target_os = "ios", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly", target_os = "solaris", target_os = "illumos", target_os = "fuchsia", target_os = "redox", target_os = "cloudabi", target_os = "haiku", target_os = "vxworks", target_os = "emscripten", target_os = "wasi")))
87+
# cfg(not(all(target_arch = "arm", target_os = "none")))
8788
(
89+
"@rules_rust//rust/platform:i686-apple-darwin",
90+
"@rules_rust//rust/platform:i686-pc-windows-msvc",
91+
"@rules_rust//rust/platform:i686-unknown-linux-gnu",
92+
"@rules_rust//rust/platform:x86_64-apple-darwin",
93+
"@rules_rust//rust/platform:x86_64-pc-windows-msvc",
94+
"@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
95+
"@rules_rust//rust/platform:aarch64-apple-darwin",
96+
"@rules_rust//rust/platform:aarch64-apple-ios",
97+
"@rules_rust//rust/platform:aarch64-linux-android",
98+
"@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
99+
"@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
100+
"@rules_rust//rust/platform:i686-linux-android",
101+
"@rules_rust//rust/platform:i686-unknown-freebsd",
102+
"@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
103+
"@rules_rust//rust/platform:s390x-unknown-linux-gnu",
88104
"@rules_rust//rust/platform:wasm32-unknown-unknown",
105+
"@rules_rust//rust/platform:wasm32-wasi",
106+
"@rules_rust//rust/platform:x86_64-apple-ios",
107+
"@rules_rust//rust/platform:x86_64-linux-android",
108+
"@rules_rust//rust/platform:x86_64-unknown-freebsd",
89109
): [
90110
],
91111
"//conditions:default": [],
@@ -104,52 +124,71 @@ rust_library(
104124
crate_features = [
105125
],
106126
crate_root = "src/lib.rs",
107-
crate_type = "lib",
108127
data = [],
109128
edition = "2018",
110129
rustc_flags = [
111130
"--cap-lints=allow",
112131
],
113132
tags = [
114133
"cargo-raze",
134+
"crate-name=ahash",
115135
"manual",
116136
],
117-
version = "0.7.4",
137+
version = "0.7.6",
118138
# buildifier: leave-alone
119139
deps = [
120140
":ahash_build_script",
121141
] + selects.with_or({
122142
# cfg(any(target_os = "linux", target_os = "android", target_os = "windows", target_os = "macos", target_os = "ios", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly", target_os = "solaris", target_os = "illumos", target_os = "fuchsia", target_os = "redox", target_os = "cloudabi", target_os = "haiku", target_os = "vxworks", target_os = "emscripten", target_os = "wasi"))
123143
(
144+
"@rules_rust//rust/platform:i686-apple-darwin",
145+
"@rules_rust//rust/platform:i686-pc-windows-msvc",
146+
"@rules_rust//rust/platform:i686-unknown-linux-gnu",
147+
"@rules_rust//rust/platform:x86_64-apple-darwin",
148+
"@rules_rust//rust/platform:x86_64-pc-windows-msvc",
149+
"@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
124150
"@rules_rust//rust/platform:aarch64-apple-darwin",
125151
"@rules_rust//rust/platform:aarch64-apple-ios",
126152
"@rules_rust//rust/platform:aarch64-linux-android",
127153
"@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
128154
"@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
129-
"@rules_rust//rust/platform:i686-apple-darwin",
130155
"@rules_rust//rust/platform:i686-linux-android",
131-
"@rules_rust//rust/platform:i686-pc-windows-msvc",
132156
"@rules_rust//rust/platform:i686-unknown-freebsd",
133-
"@rules_rust//rust/platform:i686-unknown-linux-gnu",
134157
"@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
135158
"@rules_rust//rust/platform:s390x-unknown-linux-gnu",
136159
"@rules_rust//rust/platform:wasm32-wasi",
137-
"@rules_rust//rust/platform:x86_64-apple-darwin",
138160
"@rules_rust//rust/platform:x86_64-apple-ios",
139161
"@rules_rust//rust/platform:x86_64-linux-android",
140-
"@rules_rust//rust/platform:x86_64-pc-windows-msvc",
141162
"@rules_rust//rust/platform:x86_64-unknown-freebsd",
142-
"@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
143163
): [
144-
"@raze__getrandom__0_2_3//:getrandom",
145-
"@raze__once_cell__1_8_0//:once_cell",
164+
"@raze__getrandom__0_2_4//:getrandom",
146165
],
147166
"//conditions:default": [],
148167
}) + selects.with_or({
149-
# cfg(not(any(target_os = "linux", target_os = "android", target_os = "windows", target_os = "macos", target_os = "ios", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly", target_os = "solaris", target_os = "illumos", target_os = "fuchsia", target_os = "redox", target_os = "cloudabi", target_os = "haiku", target_os = "vxworks", target_os = "emscripten", target_os = "wasi")))
168+
# cfg(not(all(target_arch = "arm", target_os = "none")))
150169
(
170+
"@rules_rust//rust/platform:i686-apple-darwin",
171+
"@rules_rust//rust/platform:i686-pc-windows-msvc",
172+
"@rules_rust//rust/platform:i686-unknown-linux-gnu",
173+
"@rules_rust//rust/platform:x86_64-apple-darwin",
174+
"@rules_rust//rust/platform:x86_64-pc-windows-msvc",
175+
"@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
176+
"@rules_rust//rust/platform:aarch64-apple-darwin",
177+
"@rules_rust//rust/platform:aarch64-apple-ios",
178+
"@rules_rust//rust/platform:aarch64-linux-android",
179+
"@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
180+
"@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
181+
"@rules_rust//rust/platform:i686-linux-android",
182+
"@rules_rust//rust/platform:i686-unknown-freebsd",
183+
"@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
184+
"@rules_rust//rust/platform:s390x-unknown-linux-gnu",
151185
"@rules_rust//rust/platform:wasm32-unknown-unknown",
186+
"@rules_rust//rust/platform:wasm32-wasi",
187+
"@rules_rust//rust/platform:x86_64-apple-ios",
188+
"@rules_rust//rust/platform:x86_64-linux-android",
189+
"@rules_rust//rust/platform:x86_64-unknown-freebsd",
152190
): [
191+
"@raze__once_cell__1_9_0//:once_cell",
153192
],
154193
"//conditions:default": [],
155194
}),

bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects")
1010

1111
# buildifier: disable=load
1212
load(
13-
"@rules_rust//rust:rust.bzl",
13+
"@rules_rust//rust:defs.bzl",
1414
"rust_binary",
1515
"rust_library",
16+
"rust_proc_macro",
1617
"rust_test",
1718
)
1819

@@ -44,14 +45,14 @@ rust_library(
4445
crate_features = [
4546
],
4647
crate_root = "src/lib.rs",
47-
crate_type = "lib",
4848
data = [],
4949
edition = "2015",
5050
rustc_flags = [
5151
"--cap-lints=allow",
5252
],
5353
tags = [
5454
"cargo-raze",
55+
"crate-name=autocfg",
5556
"manual",
5657
],
5758
version = "1.0.1",

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects")
1010

1111
# buildifier: disable=load
1212
load(
13-
"@rules_rust//rust:rust.bzl",
13+
"@rules_rust//rust:defs.bzl",
1414
"rust_binary",
1515
"rust_library",
16+
"rust_proc_macro",
1617
"rust_test",
1718
)
1819

@@ -36,14 +37,14 @@ rust_library(
3637
crate_features = [
3738
],
3839
crate_root = "src/lib.rs",
39-
crate_type = "lib",
4040
data = [],
4141
edition = "2018",
4242
rustc_flags = [
4343
"--cap-lints=allow",
4444
],
4545
tags = [
4646
"cargo-raze",
47+
"crate-name=cfg-if",
4748
"manual",
4849
],
4950
version = "1.0.0",

0 commit comments

Comments
 (0)