Skip to content

Commit b316730

Browse files
committed
wasmsign: use vendored crates and update rules_rust format
Signed-off-by: Matt Leon <mattleon@google.com>
1 parent 10ae611 commit b316730

152 files changed

Lines changed: 1097 additions & 1087 deletions

File tree

Some content is hidden

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

MODULE.bazel

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,12 @@ use_repo(rust, "rust_toolchains")
8080

8181
register_toolchains("@rust_toolchains//:all")
8282

83-
crate = use_extension("@rules_rust//crate_universe:extensions.bzl", "crate")
84-
crate.from_cargo(
85-
name = "wasmsign",
86-
cargo_lockfile = "//bazel/cargo/wasmsign:Cargo.Bazel.lock",
87-
generate_binaries = True,
88-
manifests = ["//bazel/cargo/wasmsign:Cargo.toml"],
83+
wasmsign_crates = use_extension("//bazel:extensions.bzl", "wasmsign_crates")
84+
use_repo(
85+
wasmsign_crates,
86+
"ws",
87+
"ws__wasmsign2-cli-0.2.6",
8988
)
90-
use_repo(crate, "wasmsign")
9189

9290
# Wasmtime and its dependencies
9391
wasmtime_crates = use_extension("//bazel:extensions.bzl", "wasmtime_crates")

bazel/cargo/wasmsign/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ crates_vendor(
3030
generate_target_compatible_with = False,
3131
manifests = [":Cargo.toml"],
3232
mode = "remote",
33-
repository_name = "cu", # shorten generated paths for Windows...
33+
repository_name = "ws", # shorten generated paths for Windows...
3434
tags = ["manual"],
3535
vendor_path = "remote",
3636
)

bazel/cargo/wasmsign/remote/BUILD.adler2-2.0.1.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To
44
# regenerate this file, run the following:
55
#
6-
# bazel run @//bazel/cargo/wasmsign:crates_vendor
6+
# bazel run @@//bazel/cargo/wasmsign:crates_vendor
77
###############################################################################
88

99
load("@rules_rust//cargo:defs.bzl", "cargo_toml_env_vars")

bazel/cargo/wasmsign/remote/BUILD.aho-corasick-1.1.4.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To
44
# regenerate this file, run the following:
55
#
6-
# bazel run @//bazel/cargo/wasmsign:crates_vendor
6+
# bazel run @@//bazel/cargo/wasmsign:crates_vendor
77
###############################################################################
88

99
load("@rules_rust//cargo:defs.bzl", "cargo_toml_env_vars")
@@ -55,6 +55,6 @@ rust_library(
5555
],
5656
version = "1.1.4",
5757
deps = [
58-
"@cu__memchr-2.7.6//:memchr",
58+
"@ws__memchr-2.7.6//:memchr",
5959
],
6060
)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To
44
# regenerate this file, run the following:
55
#
6-
# bazel run @//bazel/cargo/wasmsign:crates_vendor
6+
# bazel run @@//bazel/cargo/wasmsign:crates_vendor
77
###############################################################################
88

99
load(
@@ -59,7 +59,7 @@ rust_library(
5959
],
6060
version = "1.0.100",
6161
deps = [
62-
"@cu__anyhow-1.0.100//:build_script_build",
62+
"@ws__anyhow-1.0.100//:build_script_build",
6363
],
6464
)
6565

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To
44
# regenerate this file, run the following:
55
#
6-
# bazel run @//bazel/cargo/wasmsign:crates_vendor
6+
# bazel run @@//bazel/cargo/wasmsign:crates_vendor
77
###############################################################################
88

99
load("@rules_rust//cargo:defs.bzl", "cargo_toml_env_vars")

bazel/cargo/wasmsign/remote/BUILD.base64-0.22.1.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To
44
# regenerate this file, run the following:
55
#
6-
# bazel run @//bazel/cargo/wasmsign:crates_vendor
6+
# bazel run @@//bazel/cargo/wasmsign:crates_vendor
77
###############################################################################
88

99
load("@rules_rust//cargo:defs.bzl", "cargo_toml_env_vars")

bazel/cargo/wasmsign/remote/BUILD.base64-0.9.3.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To
44
# regenerate this file, run the following:
55
#
6-
# bazel run @//bazel/cargo/wasmsign:crates_vendor
6+
# bazel run @@//bazel/cargo/wasmsign:crates_vendor
77
###############################################################################
88

99
load("@rules_rust//cargo:defs.bzl", "cargo_toml_env_vars")
@@ -51,7 +51,7 @@ rust_library(
5151
],
5252
version = "0.9.3",
5353
deps = [
54-
"@cu__byteorder-1.5.0//:byteorder",
55-
"@cu__safemem-0.3.3//:safemem",
54+
"@ws__byteorder-1.5.0//:byteorder",
55+
"@ws__safemem-0.3.3//:safemem",
5656
],
5757
)

bazel/cargo/wasmsign/remote/BUILD.bazel

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To
44
# regenerate this file, run the following:
55
#
6-
# bazel run @//bazel/cargo/wasmsign:crates_vendor
6+
# bazel run @@//bazel/cargo/wasmsign:crates_vendor
77
###############################################################################
88

99
package(default_visibility = ["//visibility:public"])
@@ -33,25 +33,25 @@ filegroup(
3333
# Workspace Member Dependencies
3434
alias(
3535
name = "wasmsign2-cli-0.2.6",
36-
actual = "@cu__wasmsign2-cli-0.2.6//:wasmsign2_cli",
36+
actual = "@ws__wasmsign2-cli-0.2.6//:wasmsign2_cli",
3737
tags = ["manual"],
3838
)
3939

4040
alias(
4141
name = "wasmsign2-cli",
42-
actual = "@cu__wasmsign2-cli-0.2.6//:wasmsign2_cli",
42+
actual = "@ws__wasmsign2-cli-0.2.6//:wasmsign2_cli",
4343
tags = ["manual"],
4444
)
4545

4646
# Binaries
4747
alias(
4848
name = "clap__stdio-fixture",
49-
actual = "@cu__clap-3.2.25//:stdio-fixture__bin",
49+
actual = "@ws__clap-3.2.25//:stdio-fixture__bin",
5050
tags = ["manual"],
5151
)
5252

5353
alias(
5454
name = "wasmsign2-cli__wasmsign2",
55-
actual = "@cu__wasmsign2-cli-0.2.6//:wasmsign2__bin",
55+
actual = "@ws__wasmsign2-cli-0.2.6//:wasmsign2__bin",
5656
tags = ["manual"],
5757
)

bazel/cargo/wasmsign/remote/BUILD.bitflags-1.3.2.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To
44
# regenerate this file, run the following:
55
#
6-
# bazel run @//bazel/cargo/wasmsign:crates_vendor
6+
# bazel run @@//bazel/cargo/wasmsign:crates_vendor
77
###############################################################################
88

99
load("@rules_rust//cargo:defs.bzl", "cargo_toml_env_vars")

0 commit comments

Comments
 (0)