Skip to content

Commit d83447f

Browse files
committed
fix raze
Signed-off-by: Shikugawa <[email protected]>
1 parent e823aba commit d83447f

18 files changed

+158
-45
lines changed

bazel/cargo/BUILD.bazel

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@ alias(
5757
],
5858
)
5959

60+
alias(
61+
name = "protobuf",
62+
actual = "@raze__protobuf__2_22_1//:protobuf",
63+
tags = [
64+
"cargo-raze",
65+
"manual",
66+
],
67+
)
68+
6069
# Export file for Stardoc support
6170
exports_files(
6271
[

bazel/cargo/crates.bzl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,15 @@ def raze_fetch_remote_crates():
111111
build_file = Label("//bazel/cargo/remote:BUILD.num-traits-0.2.14.bazel"),
112112
)
113113

114+
maybe(
115+
http_archive,
116+
name = "raze__protobuf__2_22_1",
117+
url = "https://crates.io/api/v1/crates/protobuf/2.22.1/download",
118+
type = "tar.gz",
119+
strip_prefix = "protobuf-2.22.1",
120+
build_file = Label("//bazel/cargo/remote:BUILD.protobuf-2.22.1.bazel"),
121+
)
122+
114123
maybe(
115124
http_archive,
116125
name = "raze__time__0_1_43",

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ cargo-raze crate build file.
55
DO NOT EDIT! Replaced on runs of cargo-raze
66
"""
77

8+
# buildifier: disable=load
9+
load("@bazel_skylib//lib:selects.bzl", "selects")
10+
811
# buildifier: disable=load
912
load(
1013
"@rules_rust//rust:rust.bzl",
@@ -13,9 +16,6 @@ load(
1316
"rust_test",
1417
)
1518

16-
# buildifier: disable=load
17-
load("@bazel_skylib//lib:selects.bzl", "selects")
18-
1919
package(default_visibility = [
2020
# Public for visibility by "@raze__crate__version//" targets.
2121
#

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ cargo-raze crate build file.
55
DO NOT EDIT! Replaced on runs of cargo-raze
66
"""
77

8+
# buildifier: disable=load
9+
load("@bazel_skylib//lib:selects.bzl", "selects")
10+
811
# buildifier: disable=load
912
load(
1013
"@rules_rust//rust:rust.bzl",
@@ -13,9 +16,6 @@ load(
1316
"rust_test",
1417
)
1518

16-
# buildifier: disable=load
17-
load("@bazel_skylib//lib:selects.bzl", "selects")
18-
1919
package(default_visibility = [
2020
# Public for visibility by "@raze__crate__version//" targets.
2121
#

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ cargo-raze crate build file.
55
DO NOT EDIT! Replaced on runs of cargo-raze
66
"""
77

8+
# buildifier: disable=load
9+
load("@bazel_skylib//lib:selects.bzl", "selects")
10+
811
# buildifier: disable=load
912
load(
1013
"@rules_rust//rust:rust.bzl",
@@ -13,9 +16,6 @@ load(
1316
"rust_test",
1417
)
1518

16-
# buildifier: disable=load
17-
load("@bazel_skylib//lib:selects.bzl", "selects")
18-
1919
package(default_visibility = [
2020
# Public for visibility by "@raze__crate__version//" targets.
2121
#

bazel/cargo/remote/BUILD.chrono-0.4.19.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ cargo-raze crate build file.
55
DO NOT EDIT! Replaced on runs of cargo-raze
66
"""
77

8+
# buildifier: disable=load
9+
load("@bazel_skylib//lib:selects.bzl", "selects")
10+
811
# buildifier: disable=load
912
load(
1013
"@rules_rust//rust:rust.bzl",
@@ -13,9 +16,6 @@ load(
1316
"rust_test",
1417
)
1518

16-
# buildifier: disable=load
17-
load("@bazel_skylib//lib:selects.bzl", "selects")
18-
1919
package(default_visibility = [
2020
# Public for visibility by "@raze__crate__version//" targets.
2121
#

bazel/cargo/remote/BUILD.getrandom-0.2.2.bazel

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ cargo-raze crate build file.
55
DO NOT EDIT! Replaced on runs of cargo-raze
66
"""
77

8+
# buildifier: disable=load
9+
load("@bazel_skylib//lib:selects.bzl", "selects")
10+
811
# buildifier: disable=load
912
load(
1013
"@rules_rust//rust:rust.bzl",
@@ -13,9 +16,6 @@ load(
1316
"rust_test",
1417
)
1518

16-
# buildifier: disable=load
17-
load("@bazel_skylib//lib:selects.bzl", "selects")
18-
1919
package(default_visibility = [
2020
# Public for visibility by "@raze__crate__version//" targets.
2121
#
@@ -29,6 +29,7 @@ licenses([
2929
])
3030

3131
# Generated Targets
32+
# buildifier: disable=out-of-order-load
3233
# buildifier: disable=load-on-top
3334
load(
3435
"@rules_rust//cargo:cargo_build_script.bzl",

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ cargo-raze crate build file.
55
DO NOT EDIT! Replaced on runs of cargo-raze
66
"""
77

8+
# buildifier: disable=load
9+
load("@bazel_skylib//lib:selects.bzl", "selects")
10+
811
# buildifier: disable=load
912
load(
1013
"@rules_rust//rust:rust.bzl",
@@ -13,9 +16,6 @@ load(
1316
"rust_test",
1417
)
1518

16-
# buildifier: disable=load
17-
load("@bazel_skylib//lib:selects.bzl", "selects")
18-
1919
package(default_visibility = [
2020
# Public for visibility by "@raze__crate__version//" targets.
2121
#

bazel/cargo/remote/BUILD.libc-0.2.86.bazel

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ cargo-raze crate build file.
55
DO NOT EDIT! Replaced on runs of cargo-raze
66
"""
77

8+
# buildifier: disable=load
9+
load("@bazel_skylib//lib:selects.bzl", "selects")
10+
811
# buildifier: disable=load
912
load(
1013
"@rules_rust//rust:rust.bzl",
@@ -13,9 +16,6 @@ load(
1316
"rust_test",
1417
)
1518

16-
# buildifier: disable=load
17-
load("@bazel_skylib//lib:selects.bzl", "selects")
18-
1919
package(default_visibility = [
2020
# Public for visibility by "@raze__crate__version//" targets.
2121
#
@@ -29,6 +29,7 @@ licenses([
2929
])
3030

3131
# Generated Targets
32+
# buildifier: disable=out-of-order-load
3233
# buildifier: disable=load-on-top
3334
load(
3435
"@rules_rust//cargo:cargo_build_script.bzl",

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ cargo-raze crate build file.
55
DO NOT EDIT! Replaced on runs of cargo-raze
66
"""
77

8+
# buildifier: disable=load
9+
load("@bazel_skylib//lib:selects.bzl", "selects")
10+
811
# buildifier: disable=load
912
load(
1013
"@rules_rust//rust:rust.bzl",
@@ -13,9 +16,6 @@ load(
1316
"rust_test",
1417
)
1518

16-
# buildifier: disable=load
17-
load("@bazel_skylib//lib:selects.bzl", "selects")
18-
1919
package(default_visibility = [
2020
# Public for visibility by "@raze__crate__version//" targets.
2121
#
@@ -29,6 +29,7 @@ licenses([
2929
])
3030

3131
# Generated Targets
32+
# buildifier: disable=out-of-order-load
3233
# buildifier: disable=load-on-top
3334
load(
3435
"@rules_rust//cargo:cargo_build_script.bzl",

0 commit comments

Comments
 (0)