@@ -127,12 +127,38 @@ wamr_jit_deps = module_extension(
127127)
128128
129129def _wasmedge_impl (ctx ):
130+ # WasmEdge with dependencies.
131+ # Using native Bazel cc_library rules based on Bazel Central Registry (BCR) definitions
132+ # to avoid CMake FetchContent network access during build.
133+
134+ # fmt dependency for spdlog (version 11.0.2, based on BCR)
135+ # https://github.com/bazelbuild/bazel-central-registry/tree/main/modules/fmt/11.0.2
136+ http_archive (
137+ name = "com_github_fmtlib_fmt" ,
138+ sha256 = "6cb1e6d37bdcb756dbbe59be438790db409cdb4868c66e888d5df9f13f7c027f" ,
139+ strip_prefix = "fmt-11.0.2" ,
140+ urls = ["https://github.com/fmtlib/fmt/archive/refs/tags/11.0.2.tar.gz" ],
141+ build_file = "@proxy_wasm_cpp_host//bazel/external:fmt.BUILD" ,
142+ )
143+
144+ # spdlog dependency for WasmEdge (version 1.13.0, based on BCR)
145+ # https://github.com/bazelbuild/bazel-central-registry/tree/main/modules/spdlog/1.13.0
146+ http_archive (
147+ name = "com_github_gabime_spdlog" ,
148+ sha256 = "534f2ee1a4dcbeb22249856edfb2be76a1cf4f708a20b0ac2ed090ee24cfdbc9" ,
149+ strip_prefix = "spdlog-1.13.0" ,
150+ urls = ["https://github.com/gabime/spdlog/archive/refs/tags/v1.13.0.tar.gz" ],
151+ build_file = "@proxy_wasm_cpp_host//bazel/external:spdlog.BUILD" ,
152+ )
153+
130154 http_archive (
131155 name = "com_github_wasmedge_wasmedge" ,
132156 build_file = "@proxy_wasm_cpp_host//bazel/external:wasmedge.BUILD" ,
133- sha256 = "7ab8a0df37c8d282ecff72d0f0bff8db63fd92df1645d5a014a9dbed4b7f9025" ,
134- strip_prefix = "WasmEdge-proxy-wasm-0.13.1" ,
135- url = "https://github.com/WasmEdge/WasmEdge/archive/refs/tags/proxy-wasm/0.13.1.tar.gz" ,
157+ sha256 = "2354d90a67e3eb396179663bdc0b457abbbc70dca967ec4528f211599a49f62a" ,
158+ strip_prefix = "WasmEdge-0.16.1" ,
159+ url = "https://github.com/WasmEdge/WasmEdge/archive/refs/tags/0.16.1.tar.gz" ,
160+ patches = ["@proxy_wasm_cpp_host//bazel/external:wasmedge.patch" ],
161+ patch_args = ["-p1" ],
136162 )
137163 return ctx .extension_metadata (
138164 root_module_direct_deps = ["com_github_wasmedge_wasmedge" ],
0 commit comments