Skip to content

Commit 26a6e3e

Browse files
committed
repo: Shift cargo-raze -> crate_universe
Signed-off-by: Ryan Northey <[email protected]>
1 parent 9be9637 commit 26a6e3e

File tree

257 files changed

+13564
-11262
lines changed

Some content is hidden

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

257 files changed

+13564
-11262
lines changed

Diff for: .bazelversion

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.2.0
1+
6.5.0

Diff for: .github/workflows/format.yml

+7-10
Original file line numberDiff line numberDiff line change
@@ -78,29 +78,26 @@ jobs:
7878
- name: Format (buildifier)
7979
run: find . -name "WORKSPACE" -o -name "*BUILD*" -o -name "*.bzl" | xargs -n1 buildifier -mode=check
8080

81-
cargo_raze:
82-
name: check format with cargo-raze
81+
rules_rust:
82+
name: check format with rules_rust
8383

8484
runs-on: ubuntu-latest
8585

8686
steps:
8787
- uses: actions/checkout@v2
8888

89-
- name: Install dependencies
90-
run: cargo install cargo-raze --version 0.14.1
91-
9289
- name: Format (bazel query)
9390
run: |
9491
bazel query 'deps(//bazel/cargo/...)'
9592
9693
- name: Format (cargo raze)
9794
working-directory: bazel/cargo
9895
run: |
99-
cd wasmsign && cargo raze && cd ..
100-
cd wasmtime && cargo raze && cd ..
101-
# Ignore manual changes in "errno" and "rustix" crates until fixed in cargo-raze.
102-
# See: https://github.com/google/cargo-raze/issues/451
103-
git diff --exit-code -- ':!wasmtime/remote/BUILD.errno-0.*.bazel' ':!wasmtime/remote/BUILD.rustix-0.*.bazel'
96+
cargo generate-lockfile
97+
mv Cargo.lock bazel/cargo/Cargo.Bazel.lock
98+
bazel run //bazel/cargo/wasmtime:crates_vendor
99+
bazel run //bazel/cargo/wasmsign:crates_vendor
100+
git diff --exit-code
104101
105102
clang_format:
106103
name: check format with clang-format

Diff for: bazel/cargo/wasmsign/BUILD.bazel

+28-33
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,34 @@
1-
"""
2-
@generated
3-
cargo-raze generated Bazel file.
1+
# Copyright 2022 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
414

5-
DO NOT EDIT! Replaced on runs of cargo-raze
6-
"""
15+
load("@rules_rust//crate_universe:defs.bzl", "crates_vendor")
16+
load("@proxy_wasm_cpp_host//bazel:dependencies.bzl", "SUPPORTED_PLATFORM_TRIPLES")
717

8-
package(default_visibility = ["//visibility:public"])
9-
10-
licenses([
11-
"notice", # See individual crates for specific licenses
12-
])
13-
14-
# Aliased targets
15-
alias(
16-
name = "cargo_bin_wasmsign",
17-
actual = "@wasmsign__wasmsign__0_1_2//:cargo_bin_wasmsign",
18-
tags = [
19-
"cargo-raze",
20-
"manual",
21-
],
22-
)
23-
24-
alias(
25-
name = "wasmsign",
26-
actual = "@wasmsign__wasmsign__0_1_2//:wasmsign",
27-
tags = [
28-
"cargo-raze",
29-
"manual",
30-
],
31-
)
32-
33-
# Export file for Stardoc support
3418
exports_files(
3519
[
36-
"crates.bzl",
20+
"Cargo.toml",
21+
"Cargo.Bazel.lock",
3722
],
38-
visibility = ["//visibility:public"],
23+
)
24+
25+
crates_vendor(
26+
name = "crates_vendor",
27+
cargo_lockfile = "//bazel/cargo/wasmsign:Cargo.Bazel.lock",
28+
manifests = ["//bazel/cargo/wasmsign:Cargo.toml"],
29+
mode = "remote",
30+
generate_target_compatible_with = False,
31+
# supported_platform_triples = SUPPORTED_PLATFORM_TRIPLES,
32+
tags = ["manual"],
33+
vendor_path = "//bazel/cargo/wasmsign/remote",
3934
)

Diff for: bazel/cargo/wasmsign/Cargo.Bazel.lock

+239
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,239 @@
1+
# This file is automatically @generated by Cargo.
2+
# It is not intended for manual editing.
3+
4+
[[package]]
5+
name = "ansi_term"
6+
version = "0.12.1"
7+
source = "registry+https://github.com/rust-lang/crates.io-index"
8+
checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2"
9+
dependencies = [
10+
"winapi",
11+
]
12+
13+
[[package]]
14+
name = "anyhow"
15+
version = "1.0.53"
16+
source = "registry+https://github.com/rust-lang/crates.io-index"
17+
checksum = "94a45b455c14666b85fc40a019e8ab9eb75e3a124e05494f5397122bc9eb06e0"
18+
19+
[[package]]
20+
name = "atty"
21+
version = "0.2.14"
22+
source = "registry+https://github.com/rust-lang/crates.io-index"
23+
checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
24+
dependencies = [
25+
"hermit-abi",
26+
"libc",
27+
"winapi",
28+
]
29+
30+
[[package]]
31+
name = "bitflags"
32+
version = "1.3.2"
33+
source = "registry+https://github.com/rust-lang/crates.io-index"
34+
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
35+
36+
[[package]]
37+
name = "byteorder"
38+
version = "1.4.3"
39+
source = "registry+https://github.com/rust-lang/crates.io-index"
40+
checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610"
41+
42+
[[package]]
43+
name = "cfg-if"
44+
version = "1.0.0"
45+
source = "registry+https://github.com/rust-lang/crates.io-index"
46+
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
47+
48+
[[package]]
49+
name = "clap"
50+
version = "2.34.0"
51+
source = "registry+https://github.com/rust-lang/crates.io-index"
52+
checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c"
53+
dependencies = [
54+
"ansi_term",
55+
"atty",
56+
"bitflags",
57+
"strsim",
58+
"textwrap",
59+
"unicode-width",
60+
"vec_map",
61+
]
62+
63+
[[package]]
64+
name = "ed25519-compact"
65+
version = "1.0.8"
66+
source = "registry+https://github.com/rust-lang/crates.io-index"
67+
checksum = "302ea73924517e9952bf08b505536f757e28dca8372cbf8b20723a0e2bab6c01"
68+
dependencies = [
69+
"getrandom",
70+
]
71+
72+
[[package]]
73+
name = "getrandom"
74+
version = "0.2.4"
75+
source = "registry+https://github.com/rust-lang/crates.io-index"
76+
checksum = "418d37c8b1d42553c93648be529cb70f920d3baf8ef469b74b9638df426e0b4c"
77+
dependencies = [
78+
"cfg-if",
79+
"libc",
80+
"wasi",
81+
]
82+
83+
[[package]]
84+
name = "hermit-abi"
85+
version = "0.1.19"
86+
source = "registry+https://github.com/rust-lang/crates.io-index"
87+
checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
88+
dependencies = [
89+
"libc",
90+
]
91+
92+
[[package]]
93+
name = "hmac-sha512"
94+
version = "1.1.1"
95+
source = "registry+https://github.com/rust-lang/crates.io-index"
96+
checksum = "6b2ce076d8070f292037093a825343f6341fe0ce873268c2477e2f49abd57b10"
97+
98+
[[package]]
99+
name = "libc"
100+
version = "0.2.114"
101+
source = "registry+https://github.com/rust-lang/crates.io-index"
102+
checksum = "b0005d08a8f7b65fb8073cb697aa0b12b631ed251ce73d862ce50eeb52ce3b50"
103+
104+
[[package]]
105+
name = "parity-wasm"
106+
version = "0.42.2"
107+
source = "registry+https://github.com/rust-lang/crates.io-index"
108+
checksum = "be5e13c266502aadf83426d87d81a0f5d1ef45b8027f5a471c360abfe4bfae92"
109+
110+
[[package]]
111+
name = "proc-macro2"
112+
version = "1.0.36"
113+
source = "registry+https://github.com/rust-lang/crates.io-index"
114+
checksum = "c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029"
115+
dependencies = [
116+
"unicode-xid",
117+
]
118+
119+
[[package]]
120+
name = "quote"
121+
version = "1.0.15"
122+
source = "registry+https://github.com/rust-lang/crates.io-index"
123+
checksum = "864d3e96a899863136fc6e99f3d7cae289dafe43bf2c5ac19b70df7210c0a145"
124+
dependencies = [
125+
"proc-macro2",
126+
]
127+
128+
[[package]]
129+
name = "strsim"
130+
version = "0.8.0"
131+
source = "registry+https://github.com/rust-lang/crates.io-index"
132+
checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a"
133+
134+
[[package]]
135+
name = "syn"
136+
version = "1.0.86"
137+
source = "registry+https://github.com/rust-lang/crates.io-index"
138+
checksum = "8a65b3f4ffa0092e9887669db0eae07941f023991ab58ea44da8fe8e2d511c6b"
139+
dependencies = [
140+
"proc-macro2",
141+
"quote",
142+
"unicode-xid",
143+
]
144+
145+
[[package]]
146+
name = "textwrap"
147+
version = "0.11.0"
148+
source = "registry+https://github.com/rust-lang/crates.io-index"
149+
checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060"
150+
dependencies = [
151+
"unicode-width",
152+
]
153+
154+
[[package]]
155+
name = "thiserror"
156+
version = "1.0.30"
157+
source = "registry+https://github.com/rust-lang/crates.io-index"
158+
checksum = "854babe52e4df1653706b98fcfc05843010039b406875930a70e4d9644e5c417"
159+
dependencies = [
160+
"thiserror-impl",
161+
]
162+
163+
[[package]]
164+
name = "thiserror-impl"
165+
version = "1.0.30"
166+
source = "registry+https://github.com/rust-lang/crates.io-index"
167+
checksum = "aa32fd3f627f367fe16f893e2597ae3c05020f8bba2666a4e6ea73d377e5714b"
168+
dependencies = [
169+
"proc-macro2",
170+
"quote",
171+
"syn",
172+
]
173+
174+
[[package]]
175+
name = "unicode-width"
176+
version = "0.1.9"
177+
source = "registry+https://github.com/rust-lang/crates.io-index"
178+
checksum = "3ed742d4ea2bd1176e236172c8429aaf54486e7ac098db29ffe6529e0ce50973"
179+
180+
[[package]]
181+
name = "unicode-xid"
182+
version = "0.2.2"
183+
source = "registry+https://github.com/rust-lang/crates.io-index"
184+
checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3"
185+
186+
[[package]]
187+
name = "vec_map"
188+
version = "0.8.2"
189+
source = "registry+https://github.com/rust-lang/crates.io-index"
190+
checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"
191+
192+
[[package]]
193+
name = "wasi"
194+
version = "0.10.2+wasi-snapshot-preview1"
195+
source = "registry+https://github.com/rust-lang/crates.io-index"
196+
checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6"
197+
198+
[[package]]
199+
name = "wasmsign"
200+
version = "0.1.2"
201+
source = "git+https://github.com/jedisct1/wasmsign#dfbc0aabe81885d59e88e667aa9c1e6a62dfe9cc"
202+
dependencies = [
203+
"anyhow",
204+
"byteorder",
205+
"clap",
206+
"ed25519-compact",
207+
"hmac-sha512",
208+
"parity-wasm",
209+
"thiserror",
210+
]
211+
212+
[[package]]
213+
name = "wasmsign-bazel"
214+
version = "0.1.2"
215+
dependencies = [
216+
"wasmsign",
217+
]
218+
219+
[[package]]
220+
name = "winapi"
221+
version = "0.3.9"
222+
source = "registry+https://github.com/rust-lang/crates.io-index"
223+
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
224+
dependencies = [
225+
"winapi-i686-pc-windows-gnu",
226+
"winapi-x86_64-pc-windows-gnu",
227+
]
228+
229+
[[package]]
230+
name = "winapi-i686-pc-windows-gnu"
231+
version = "0.4.0"
232+
source = "registry+https://github.com/rust-lang/crates.io-index"
233+
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
234+
235+
[[package]]
236+
name = "winapi-x86_64-pc-windows-gnu"
237+
version = "0.4.0"
238+
source = "registry+https://github.com/rust-lang/crates.io-index"
239+
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"

Diff for: bazel/cargo/wasmsign/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ rust_rules_workspace_name = "rules_rust"
1414
gen_workspace_prefix = "wasmsign"
1515
genmode = "Remote"
1616
package_aliases_dir = "."
17-
workspace_path = "//bazel/cargo/wasmsign"
17+
workspace_path = "//bazel/cargo/wasmsign/remote"
1818

19-
[package.metadata.raze.crates.wasmsign.'*']
20-
extra_aliased_targets = ["cargo_bin_wasmsign"]
19+
# [package.metadata.raze.crates.wasmsign.'*']
20+
# extra_aliased_targets = ["wasmsign"]

0 commit comments

Comments
 (0)