Skip to content

Commit 4827597

Browse files
committed
Update Bazel workspace dependencies to 7.6.2 compatibility with MODULE.bazel support
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
1 parent ba23ab4 commit 4827597

12 files changed

+797
-13
lines changed

.bazelrc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# Disable Bzlmod
2-
common --noenable_bzlmod
1+
# Enable Bzlmod for modern dependency management
2+
# To use legacy WORKSPACE instead, add: --noenable_bzlmod
3+
common --enable_bzlmod
34

45
# Force Bazel to use --target=wasm32-wasip1
56
build --platforms=@rules_rust//rust/platform:wasi

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.6.1
1+
7.6.2

MODULE.bazel

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Copyright 2020 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.
14+
15+
module(
16+
name = "proxy_wasm_rust_sdk",
17+
version = "0.2.5-dev",
18+
)
19+
20+
# Regular dependencies (sorted alphabetically)
21+
bazel_dep(name = "bazel_features", version = "1.38.0")
22+
bazel_dep(name = "bazel_skylib", version = "1.8.2")
23+
bazel_dep(name = "rules_cc", version = "0.2.14")
24+
bazel_dep(name = "rules_rust", version = "0.67.0")
25+
26+
# Configure Rust toolchain
27+
rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
28+
rust.toolchain(edition = "2018")
29+
use_repo(rust, "rust_toolchains")
30+
31+
register_toolchains("@rust_toolchains//:all")

MODULE.bazel.lock

Lines changed: 95 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

WORKSPACE

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ load("@proxy_wasm_rust_sdk//bazel:repositories.bzl", "proxy_wasm_rust_sdk_reposi
44

55
proxy_wasm_rust_sdk_repositories()
66

7+
load("@bazel_features//:deps.bzl", "bazel_features_deps")
8+
9+
bazel_features_deps()
10+
11+
load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")
12+
13+
compatibility_proxy_repo()
14+
715
load("@proxy_wasm_rust_sdk//bazel:dependencies.bzl", "proxy_wasm_rust_sdk_dependencies")
816

917
proxy_wasm_rust_sdk_dependencies()
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
###############################################################################
2+
# @generated
3+
# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To
4+
# regenerate this file, run the following:
5+
#
6+
# bazel run @//bazel/cargo:crates_vendor
7+
###############################################################################
8+
9+
load("@rules_rust//cargo:defs.bzl", "cargo_toml_env_vars")
10+
load("@rules_rust//rust:defs.bzl", "rust_library")
11+
12+
package(default_visibility = ["//visibility:public"])
13+
14+
cargo_toml_env_vars(
15+
name = "cargo_toml_env_vars",
16+
src = "Cargo.toml",
17+
)
18+
19+
rust_library(
20+
name = "hashbrown",
21+
srcs = glob(
22+
include = ["**/*.rs"],
23+
allow_empty = True,
24+
),
25+
compile_data = glob(
26+
include = ["**"],
27+
allow_empty = True,
28+
exclude = [
29+
"**/* *",
30+
".tmp_git_root/**/*",
31+
"BUILD",
32+
"BUILD.bazel",
33+
"WORKSPACE",
34+
"WORKSPACE.bazel",
35+
],
36+
),
37+
crate_features = [
38+
"allocator-api2",
39+
"default",
40+
"default-hasher",
41+
"equivalent",
42+
"inline-more",
43+
"raw-entry",
44+
],
45+
crate_root = "src/lib.rs",
46+
edition = "2021",
47+
rustc_env_files = [
48+
":cargo_toml_env_vars",
49+
],
50+
rustc_flags = [
51+
"--cap-lints=allow",
52+
],
53+
tags = [
54+
"cargo-bazel",
55+
"crate-name=hashbrown",
56+
"manual",
57+
"noclippy",
58+
"norustfmt",
59+
],
60+
target_compatible_with = select({
61+
"@rules_rust//rust/platform:aarch64-apple-darwin": [],
62+
"@rules_rust//rust/platform:aarch64-apple-ios": [],
63+
"@rules_rust//rust/platform:aarch64-apple-ios-sim": [],
64+
"@rules_rust//rust/platform:aarch64-linux-android": [],
65+
"@rules_rust//rust/platform:aarch64-pc-windows-msvc": [],
66+
"@rules_rust//rust/platform:aarch64-unknown-fuchsia": [],
67+
"@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [],
68+
"@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [],
69+
"@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [],
70+
"@rules_rust//rust/platform:aarch64-unknown-uefi": [],
71+
"@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [],
72+
"@rules_rust//rust/platform:armv7-linux-androideabi": [],
73+
"@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [],
74+
"@rules_rust//rust/platform:i686-apple-darwin": [],
75+
"@rules_rust//rust/platform:i686-linux-android": [],
76+
"@rules_rust//rust/platform:i686-pc-windows-msvc": [],
77+
"@rules_rust//rust/platform:i686-unknown-freebsd": [],
78+
"@rules_rust//rust/platform:i686-unknown-linux-gnu": [],
79+
"@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [],
80+
"@rules_rust//rust/platform:riscv32imc-unknown-none-elf": [],
81+
"@rules_rust//rust/platform:riscv64gc-unknown-linux-gnu": [],
82+
"@rules_rust//rust/platform:riscv64gc-unknown-none-elf": [],
83+
"@rules_rust//rust/platform:s390x-unknown-linux-gnu": [],
84+
"@rules_rust//rust/platform:thumbv7em-none-eabi": [],
85+
"@rules_rust//rust/platform:thumbv8m.main-none-eabi": [],
86+
"@rules_rust//rust/platform:wasm32-unknown-emscripten": [],
87+
"@rules_rust//rust/platform:wasm32-unknown-unknown": [],
88+
"@rules_rust//rust/platform:wasm32-wasip1": [],
89+
"@rules_rust//rust/platform:wasm32-wasip1-threads": [],
90+
"@rules_rust//rust/platform:wasm32-wasip2": [],
91+
"@rules_rust//rust/platform:x86_64-apple-darwin": [],
92+
"@rules_rust//rust/platform:x86_64-apple-ios": [],
93+
"@rules_rust//rust/platform:x86_64-linux-android": [],
94+
"@rules_rust//rust/platform:x86_64-pc-windows-msvc": [],
95+
"@rules_rust//rust/platform:x86_64-unknown-freebsd": [],
96+
"@rules_rust//rust/platform:x86_64-unknown-fuchsia": [],
97+
"@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [],
98+
"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [],
99+
"@rules_rust//rust/platform:x86_64-unknown-none": [],
100+
"@rules_rust//rust/platform:x86_64-unknown-uefi": [],
101+
"//conditions:default": ["@platforms//:incompatible"],
102+
}),
103+
version = "0.16.1",
104+
deps = [
105+
"@crates_vendor__allocator-api2-0.2.21//:allocator_api2",
106+
"@crates_vendor__equivalent-1.0.2//:equivalent",
107+
"@crates_vendor__foldhash-0.2.0//:foldhash",
108+
],
109+
)

0 commit comments

Comments
 (0)