@@ -19,15 +19,23 @@ load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
1919def proxy_wasm_cpp_host_repositories ():
2020 # Bazel extensions.
2121
22+ maybe (
23+ http_archive ,
24+ name = "bazel_features" ,
25+ sha256 = "af3d4fb1cf4f25942cb4a933b1ad93a0ea9fe9ee70c2af7f369fb72a67c266e5" ,
26+ strip_prefix = "bazel_features-1.21.0" ,
27+ urls = ["https://github.com/bazel-contrib/bazel_features/releases/download/v1.21.0/bazel_features-v1.21.0.tar.gz" ],
28+ )
29+
2230 # Update platforms for crate_universe. Can remove when we update Bazel version.
2331 maybe (
2432 http_archive ,
2533 name = "platforms" ,
2634 urls = [
27- "https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0 .0.10 /platforms-0 .0.10 .tar.gz" ,
28- "https://github.com/bazelbuild/platforms/releases/download/0 .0.10 /platforms-0 .0.10 .tar.gz" ,
35+ "https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/1 .0.0 /platforms-1 .0.0 .tar.gz" ,
36+ "https://github.com/bazelbuild/platforms/releases/download/1 .0.0 /platforms-1 .0.0 .tar.gz" ,
2937 ],
30- sha256 = "218efe8ee736d26a3572663b374a253c012b716d8af0c07e842e82f238a0a7ee " ,
38+ sha256 = "3384eb1c30762704fbe38e440204e114154086c8fc8a8c2e3e28441028c019a8 " ,
3139 )
3240
3341 maybe (
@@ -48,14 +56,42 @@ def proxy_wasm_cpp_host_repositories():
4856 urls = ["https://github.com/bazelbuild/rules_cc/releases/download/0.0.9/rules_cc-0.0.9.tar.gz" ],
4957 )
5058
59+ # aspect_rules_lint v1.12.0 for modern clang-tidy integration
5160 maybe (
5261 http_archive ,
53- name = "bazel_clang_tidy" ,
54- sha256 = "6ed23cbff9423a30ef10becf57210a26d54fe198a211f4037d931c06f843c023" ,
55- strip_prefix = "bazel_clang_tidy-c2fe98cfec0430e78bff4169e9ca0a43123e4c99" ,
56- url = "https://github.com/erenon/bazel_clang_tidy/archive/c2fe98cfec0430e78bff4169e9ca0a43123e4c99.tar.gz" ,
57- patches = ["@proxy_wasm_cpp_host//bazel/external:bazel_clang_tidy.patch" ],
58- patch_args = ["-p1" ],
62+ name = "aspect_rules_lint" ,
63+ sha256 = "a8a63bd071a39bd5be1f99d9f258eac674673c98505f9fc5b4c76587f67278cd" ,
64+ strip_prefix = "rules_lint-1.12.0" ,
65+ url = "https://github.com/aspect-build/rules_lint/releases/download/v1.12.0/rules_lint-v1.12.0.tar.gz" ,
66+ )
67+
68+ # bazel_lib v3.0.1 required by aspect_rules_lint v1.12.0
69+ maybe (
70+ http_archive ,
71+ name = "bazel_lib" ,
72+ sha256 = "8b074b1a2731d29f6b95defdca95297354dc424492caf7019cf6b9f36afba54f" ,
73+ strip_prefix = "bazel-lib-3.0.1" ,
74+ url = "https://github.com/bazel-contrib/bazel-lib/releases/download/v3.0.1/bazel-lib-v3.0.1.tar.gz" ,
75+ )
76+
77+ # aspect_bazel_lib alias for aspect_rules_js v2.1.2 compatibility
78+ # aspect_rules_js expects @aspect_bazel_lib while aspect_rules_lint expects @bazel_lib
79+ # Both repos reference the same bazel-lib v3.0.1 release to maintain consistency
80+ maybe (
81+ http_archive ,
82+ name = "aspect_bazel_lib" ,
83+ sha256 = "8b074b1a2731d29f6b95defdca95297354dc424492caf7019cf6b9f36afba54f" ,
84+ strip_prefix = "bazel-lib-3.0.1" ,
85+ url = "https://github.com/bazel-contrib/bazel-lib/releases/download/v3.0.1/bazel-lib-v3.0.1.tar.gz" ,
86+ )
87+
88+ # aspect_rules_js is required by aspect_rules_lint
89+ maybe (
90+ http_archive ,
91+ name = "aspect_rules_js" ,
92+ sha256 = "fbc34d815a0cc52183a1a26732fc0329e26774a51abbe0f26fc9fd2dab6133b4" ,
93+ strip_prefix = "rules_js-2.1.2" ,
94+ url = "https://github.com/aspect-build/rules_js/releases/download/v2.1.2/rules_js-v2.1.2.tar.gz" ,
5995 )
6096
6197 maybe (
@@ -98,8 +134,6 @@ def proxy_wasm_cpp_host_repositories():
98134 url = "https://github.com/bazelbuild/rules_python/releases/download/0.34.0/rules_python-0.34.0.tar.gz" ,
99135 )
100136
101- # Keep at 0.42 one because https://github.com/bazelbuild/rules_rust/issues/2665
102- # manifests at 0.43
103137 maybe (
104138 http_archive ,
105139 name = "rules_rust" ,
@@ -180,7 +214,7 @@ def proxy_wasm_cpp_host_repositories():
180214 # 13.8.258.26
181215 commit = "de9d0f8b56ae61896e4d2ac577fc589efb14f87d" ,
182216 remote = "https://chromium.googlesource.com/v8/v8" ,
183- shallow_since = "1752074621 -0400 " ,
217+ shallow_since = "1752074621 -0700 " ,
184218 patches = [
185219 "@proxy_wasm_cpp_host//bazel/external:v8.patch" ,
186220 ],
@@ -257,11 +291,6 @@ def proxy_wasm_cpp_host_repositories():
257291 build_file = "@proxy_wasm_cpp_host//bazel/external:intel_ittapi.BUILD" ,
258292 )
259293
260- native .bind (
261- name = "wee8" ,
262- actual = "@v8//:wee8" ,
263- )
264-
265294 # WAMR with dependencies.
266295
267296 maybe (
@@ -274,11 +303,6 @@ def proxy_wasm_cpp_host_repositories():
274303 url = "https://github.com/bytecodealliance/wasm-micro-runtime/archive/refs/tags/WAMR-2.4.1.zip" ,
275304 )
276305
277- native .bind (
278- name = "wamr" ,
279- actual = "@com_github_bytecodealliance_wasm_micro_runtime//:wamr_lib" ,
280- )
281-
282306 maybe (
283307 http_archive ,
284308 name = "llvm-15_0_7" ,
@@ -299,11 +323,6 @@ def proxy_wasm_cpp_host_repositories():
299323 url = "https://github.com/WasmEdge/WasmEdge/archive/refs/tags/proxy-wasm/0.13.1.tar.gz" ,
300324 )
301325
302- native .bind (
303- name = "wasmedge" ,
304- actual = "@com_github_wasmedge_wasmedge//:wasmedge_lib" ,
305- )
306-
307326 # Wasmtime with dependencies.
308327
309328 maybe (
@@ -314,13 +333,3 @@ def proxy_wasm_cpp_host_repositories():
314333 strip_prefix = "wasmtime-24.0.0" ,
315334 url = "https://github.com/bytecodealliance/wasmtime/archive/v24.0.0.tar.gz" ,
316335 )
317-
318- native .bind (
319- name = "wasmtime" ,
320- actual = "@com_github_bytecodealliance_wasmtime//:wasmtime_lib" ,
321- )
322-
323- native .bind (
324- name = "prefixed_wasmtime" ,
325- actual = "@com_github_bytecodealliance_wasmtime//:prefixed_wasmtime_lib" ,
326- )
0 commit comments